M
Miki Watts
I'm having a problem with encoding a string... here's my code:
byte[] s = System.Text.Encoding.ASCII.GetBytes(FieldContent);
Now, this works fine, as long as there are no bytes that are over 128, for
example, a 0x99 byte turns out as 0x3f byte.
I know that ASCII is just 7 bits, but i tried the other encoding formats,
and they didn't get me what i needed... UTF7 did the same thing as ASCII,
UTF8 gave 0xC299 for each 0x99 byte, and UNICODE gave good results, but in
unicode format.
What am i doing wrong?
Miki
byte[] s = System.Text.Encoding.ASCII.GetBytes(FieldContent);
Now, this works fine, as long as there are no bytes that are over 128, for
example, a 0x99 byte turns out as 0x3f byte.
I know that ASCII is just 7 bits, but i tried the other encoding formats,
and they didn't get me what i needed... UTF7 did the same thing as ASCII,
UTF8 gave 0xC299 for each 0x99 byte, and UNICODE gave good results, but in
unicode format.
What am i doing wrong?
Miki