Questions tagged by "bytearray"


$0
 bounty
0
answers
getBytes() in Java returns different byte array than getBytes () to c #
5 years ago • lampego1@qrid
Hi everyone. I runs this Java code: String s = "73b53b86-eee3-44d2-82e3-be94d93deb5b"; byte[] result = s.getBytes(Charset.forName("UTF-8")); Length of the result var: 23 And runs this C# code: string s = "73b53b86-eee3-44d2-82e3-be94d93deb5b"; byte[] result = Encoding.UTF8.GetBytes(s); Length of the result var: 36 I can not understand what the problem is. Thanks
1 - 1 of 1 items