I'm new to C++, and I've been having issues with displaying Chinese strings with std::cout
in C++. The output is not showing the right characters but instead is showing question marks. I've been searching online for the solution to this problem, but there aren't many methods available, and none of the ones I found seem to work to me.
The following screenshot shows what happens:
My computer is running Windows 10 with system language set to English, Chinese language pack is also installed. The IDE is Visual Studio 2017.
What could be the way to display Chinese output in C++? If C++ is not ideal for displaying non-English language output, what would be a better programming language?