G
Guest
Hi
I read http://dotgnu.org/pnetlib-doc/Syste...nicodeEncoding.GetBytes(System.String) Method and here is my code:
<code
string c = "Hello, How are you today?"; //it should be other language, not English
UnicodeEncoding Unicode = new UnicodeEncoding()
byte[] encodedBytes = Unicode.GetBytes(c)
</code
I saw the value of encodedBytes at breakpoint and it showed the value is "System.Byte[]".
Why did it not show the bytes value? such as 08F36AED2FGH341D....
How should I fix it? as I need to pass that byte array value to another server through https and that server only accept unicode with 2 bytes for a char.
Thanks
I read http://dotgnu.org/pnetlib-doc/Syste...nicodeEncoding.GetBytes(System.String) Method and here is my code:
<code
string c = "Hello, How are you today?"; //it should be other language, not English
UnicodeEncoding Unicode = new UnicodeEncoding()
byte[] encodedBytes = Unicode.GetBytes(c)
</code
I saw the value of encodedBytes at breakpoint and it showed the value is "System.Byte[]".
Why did it not show the bytes value? such as 08F36AED2FGH341D....
How should I fix it? as I need to pass that byte array value to another server through https and that server only accept unicode with 2 bytes for a char.
Thanks