How do I convert text between multi-byte text strings, for example Simplified Chinese GB 2312, into UTF8 using c++ ?
How do I convert text between multi-byte text strings, for example Simplified Chinese GB
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On unix systems you’d best use the iconv library.
See iconv_open, iconv, iconv_close
You’d have to know the character encoding of course (EUC-CN, HZ).
If not on a unix system, search for some support in the OS, doing character conversions by hand is very hard to get right.