G
Guest
If I call "€".getBytes() in Java I get 0x80.
If I call myUTF8Encoding.GetBytes("€") in C# I get 0xe2, 0x82, 0xac.
In case you can't read it the chararacter in double quotes is a Euro
symbol.
I need to pass strings to Java via JNI so I need to have the same
Unicode bytes.
I know this is something to do usng different character sets but I
can't work out how to get C# to return a single byte 0x80 for the Euro
symbol.
Similar thing happens for the Yen symbol.
If I call myUTF8Encoding.GetBytes("€") in C# I get 0xe2, 0x82, 0xac.
In case you can't read it the chararacter in double quotes is a Euro
symbol.
I need to pass strings to Java via JNI so I need to have the same
Unicode bytes.
I know this is something to do usng different character sets but I
can't work out how to get C# to return a single byte 0x80 for the Euro
symbol.
Similar thing happens for the Yen symbol.