G
grawsha2000
Hi,
I'm trying to save unicode chars. in byte array. The problem is when I
try retrieve the saved chars back from the array I get different chars
from the one I saved.
Code:
dim uni as system.text.encoding=encoding.unicode
dim byte1 as byte()=uni.getbytes(1607) '1607 is the unicode
represnt. of an arabic letter
'now retrieve saved char. (number) from byte1()
messagebox.show(byte1(0) & byte1(1)) ' it shows different
value..??
Now, may be I did not get byte array clear. But it is a series of
bytes to save number 0-255, so what I did here is I just saved the
unicode numbers contiguously.
MTIA,
Grawsha
I'm trying to save unicode chars. in byte array. The problem is when I
try retrieve the saved chars back from the array I get different chars
from the one I saved.
Code:
dim uni as system.text.encoding=encoding.unicode
dim byte1 as byte()=uni.getbytes(1607) '1607 is the unicode
represnt. of an arabic letter
'now retrieve saved char. (number) from byte1()
messagebox.show(byte1(0) & byte1(1)) ' it shows different
value..??
Now, may be I did not get byte array clear. But it is a series of
bytes to save number 0-255, so what I did here is I just saved the
unicode numbers contiguously.
MTIA,
Grawsha