6
1
How can I find out the encoding of my windows 10 terminal? It doesn't display characters right. I am trying to output unicode characters that it apparently supports but it behaves strangely when running my C++ program.
6
1
How can I find out the encoding of my windows 10 terminal? It doesn't display characters right. I am trying to output unicode characters that it apparently supports but it behaves strangely when running my C++ program.
5
If by terminal you mean a cmd
shell, you can use the chcp
command to display and change the code page used.
Examples
View the current code page:
chcp
Change the code page to Unicode/65001:
chcp 65001
Source chcp
Here is a full list of Code Page Identifiers. See also Code Pages.
1
When you are in cmd
window, make a right click on the black icon located in the top left corner then make left click on "property in menu", in the appeared windows, click on "Font" tab and try different fonts (preferably TTF, such as Lucida Console) that support your unicode characters
That won't help if he is using the wrong code page ... – DavidPostill – 2017-01-23T18:58:04.497
Yes, agree, but incompatible with unicode font that haven't appropriate characters set could be an issue too, so assume my answer as an addition to your answer. – Alex – 2017-01-23T22:15:23.393
What do you mean by terminal? A
cmd
shell? – DavidPostill – 2017-01-23T17:03:48.713It looks like you have created a second account, which will also interfere with your ability to comment within your thread and to accept an answer. See How can one link/merge/combine/associate two accounts/users? and/or I accidentally created two accounts; how do I merge them? for guidance on how to merge your accounts.
– DavidPostill – 2017-01-23T19:00:12.667