Cannot get the Chinese(Simplified) string from the socket programme

  • Thread starter Thread starter micmic
  • Start date Start date
M

micmic

Dear all experts,

I would like to get the Chinese(Simplified) string from MySQL and then
send it to C# CF programme (in PDA ) using socket programme in Linux
environment. But I don't know why the string cannot be converted back to
Chinese(Simplified) (or even english)string even i have tested that i can
converted the Chinese(Simplified) (or english) String to and from an
particular encoding(such as UTF-8). Is there any special function to send
(from the linux socket programme) and receive the special string (from the
C# CF programme) ?

Thanks a lot for your kindly help.

Best wishes,
Michael
 
micmic said:
I would like to get the Chinese(Simplified) string from MySQL and then
send it to C# CF programme (in PDA ) using socket programme in Linux
environment. But I don't know why the string cannot be converted back to
Chinese(Simplified) (or even english)string even i have tested that i can
converted the Chinese(Simplified) (or english) String to and from an
particular encoding(such as UTF-8). Is there any special function to send
(from the linux socket programme) and receive the special string (from the
C# CF programme) ?

Well, you need to make sure that the encoding is the same at both ends.
Have you specified it at both ends?

See http://www.pobox.com/~skeet/csharp/debuggingunicode.html for more
information.
 
Back
Top