I am new to programming and was working on some examples in my C++ textbook. I was able to do most of the examples, but a few problems came up when I tried to do the following: Attempting to display Chinese characters on a program similar to "Hello World!"
For the question, regarding input/output of non-unicode characters such as Simplified Chinese, I would like to offer some information as to what I have attempted so far:
I was running the "Hello world!" program on Code:Blocks using C++ and attempted to replace the text "Hello world" with the Chinese characters "你好". I ran the program, but in the command prompt the output was just gibberish (乱码). So, I searched online for information and found out that I had to change my regional setting to "Simplified, China". I did this, rebooted my computer and ran the program again. This time, the program's output was in non-unicode characters, however, they were the incorrect characters (These: 浣犲ソ锛) and I also believe it to be Japanese as well... Some resources in Chinese on the internet stated it to be the coding for "你好", but I'm not too sure. I just want the text I write behind (std::cout << "---\n";) to display correctly like it would when I was using English. How would I get it to where it will display what I write in Code:Block on the Command Prompt?
Lastly, there was a prompt that popped up stating that the encoding was changed because I used illegal characters...