我想直接將非ASCII Unicode字符嵌入到字符串文字中並在printf中使用它們。這意味着我的源代碼必須保存在utf-8或utf-16中。 Visual Studio 2010不支持以任何格式編輯和保存C++源文件。但編譯&執行時,它不會產生正確的Unicode字符。編譯器是否支持嵌入unicode字符的字符串文字?Visual Studio 2010是否支持Unicode字符串中的Unicode字符的C++源代碼
例如
wprintf(L" chinese characters:中文字\n"); the trailing chinese characters cannot be displayed
可能重複的[utfcpp和Win32廣泛的API](http://stackoverflow.com/questions/3329718/utfcpp-and-win32-wide-api) – 2011-06-16 22:18:01