utf8 and encoding

Posted by Dan on Stack Overflow See other posts from Stack Overflow or by Dan
Published on 2010-04-19T08:58:59Z Indexed on 2010/04/19 9:03 UTC
Read the original article Hit count: 351

Filed under:
|

I have a sting in unicode is "hao123--??????", while in utf8 in C++ string is "hao123???????????>", but I should write it to a file in this format "hao123\uFF0D\uFF0D\u6211\u7684\u4E0A\u7F51\u4E3B\u9875", how can I do it. I know little about this encoding. Can anyone help? thanks!

© Stack Overflow or respective owner

Related posts about utf8

Related posts about encoding