-
ASCII extended
i need to print extended ASCII characters, such as '\xEA' or '\x02', in the console . i've tried char and wchar_t with cout but can't get them to display the right character. i either get ? marks. now i am trying ncurses but with same result(?).
i am running Redhat 8, is it possible to show these extended characters in the console just <iostream>. ?
-
You can output them as hex to see their values.
cout <<hex <<c;
or
printf ("%x", c);
As for printing them, they're in the non-printable range, so you're going to have a job doing so. You might find that some are mapped to something sensible looking if you're lucky. ;)