Home > Back-end > Java program and c builder network communication transmission problem of Chinese characters in the c
Java program and c builder network communication transmission problem of Chinese characters in the c
Time:10-17
Younger brother recently in. Write a program, the client android applications written in Java, the server is the program written in c + + builder, now encounter problems as follows: When the client to the server to send Chinese characters, can produce garbage problem, but send Numbers or English character is normal, also when the client to the server to send the file, the file content of Chinese characters is normal, but if the file name is Chinese characters will be garbled, personal feel is coding issues, specific how to do a little fuzzy, please god help me, it is best to give some corresponding key code, the younger brother be badly in need of help, thank you!!!!!!!!!!!
CodePudding user response:
Confirm whether the server send characters unicode
CodePudding user response:
Mobile terminal sends data when I put it into unicode but the server is written by c + + builder program I can't decode, printed is a bunch of gibberish,,,
CodePudding user response:
Visual transmission is utf-8, in c + + Builder end try using AnsiToUtf8 Utf8ToAnsi conversion and see the results,