search

Home  >  Q&A  >  body text

C++ programming ascll version or unicode version problem. Which encoding is the unicode version?

I used vs2015 to set the unicode encoding, and then opened it and found that it was gb2312 encoding.
I used netbeans to write the program and I didn’t know how to choose the unicode version. I chose utf-16 and the Chinese that came out was garbled

(注:netbeans有uft-8,16,32这些版本 ,但是没有像vs那么笼统就说个unicode或者多字节)
搞得我现在都不知道我到底在用哪个版本写.
我想以后只用unicode写,请问有哪些要注意的,谢谢
PHP中文网PHP中文网2752 days ago884

reply all(1)I'll reply

  • PHPz

    PHPz2017-05-16 13:27:34

    If you open gb2312 with gb2312 encoding, of course it will be garbled when opened with other encodings. What character encoding should be used in the file to use the corresponding encoding and decoding? Or convert gb2312 encoding to other encodings, such as utf-8. You can use notepad 另存为.

    reply
    0
  • Cancelreply