我想直接将非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