各位大佬,vs在不顯示警告的情況下,如何實作同時支持UTF8和ANSI兩種編碼?
還是同時只能用一種編碼嗎?
uj5u.com熱心網友回復:
char *s1 = "aaa"; ANSIchar *s2 = u8"aaa"; // UTF-8
char *s3 = u"aaa"; // UTF-16
char *s4 = U"aaa"; // UTF-32
uj5u.com熱心網友回復:
學習了。。。。。。。。。轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/277534.html
標籤:C++ 語言
上一篇:代碼問題何在?
下一篇:mfc 視窗設計
