c++ - Displaying Unicode/ASCII Characters on console or window -


I can not show a 'bullet' of the character code DEC 149 which can be found on .

Cust & lt; & Lt; Four (14 9) & lt; & Lt; Endl;

It comes in the form of ò on the console window, I know some characters from the charmap I want to use, but how do I Will know character code?

The problem is that ASCII defines only the character code 0 to 127. If you want to use code above it, you must specify an ANSI code page. The chart you referenced is using the Latin-1 code page and your console is apparently using something else.

You have to set Latin-1 to display your console code page as your letter. There is no standard C ++ method to do this. If you are programming on Windows, you can use the SetConsoleOutputCP () function. Code for Latin-1 on Windows is page ID 1252.


Comments