By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,054 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

convert a ebcidic string to a ebcidic byte array in vb.net

P: 2
I ahve String which i have formed in EBCIDIC format.Now This EBCIDIC string has to be converted to EBCIDIC Byte array.


For example

Dim temp1 as String={"&HF3", "&HB1", "&H1"}

to
Dim Ter1AZ() As Byte ={&HF3, &HB1, &H1}
Dec 27 '10 #1
Share this Question
Share on Google+
1 Reply


P: 46
I am not aware of a native EBCIDIC encoding for VB. But since you are not trying to go from EBCIDIC to ASCII or something else you might try using one of the Unicode routines in System.text i.e

Dim someBytes as Byte()
someBytes= encoding.UTF8.getbyes(ebcidicString)
Dec 27 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.