Thursday, December 5, 2013

Character encoding problem

The client is under XCODE developed in the windows server is developed, the use of socket communication, the client sends Chinese characters to the server, garbled, I suspect that the character encoding problem, find the Internet a lot, did not find a solution way, I use that WideCharToMultiByte conversion does not work, the server VS2008 environment using multiple character sets, did not use unicode, the client is utf8, may I ask who can help solve? Thank you very much!
Reply:
The Chinese encode
Reply:
cited a floor reply:
the Chinese encode

Encode the client is it? Endocing UTF8 client is used, the key is how to convert the received server Chinese? I want the Chinese received into the database, how to know how to convert it upstairs
Reply:
utf8 turn into unicode utf8 ansi need to start and then converted to unicode ansi;
You're doing it?
Reply:
Directly in the client base64 encryption, then the solution to the server on the line. . base64 you look solved

No comments:

Post a Comment