![](/img/trans.png)
[英]Why trying to print unicode encoded strings with cout leads to compilation error in newer C++ standards?
我嘗試使用 Visual C++ 2022 版本 17.4.4 將 C++ 標准設置為最新來打印 Unicode 個字符。 我有編譯錯誤: 使用u (utf-16) 和U (utf-32) 字符串文字觀察到相同的行為。 將標准設置為 C++17 或 C++14 使程序可以編譯。 在 C++20 和 ...