In Visual Studio 2005 on 32-bit Windows, why doesn\'t my console display characters from 128 to 255?
for example:
cout << \"¿\" << endl;
When you print an ASCII string, Windows internally converts it to UNICODE based on the current code page. There is also a translation from UNICODE to "ASCII" done by the CRT. The following would work.
#include
#include
#include
#include
void
__cdecl
main(int ac, char **av)
{
_setmode(_fileno(stdout), _O_U16TEXT);
std::wcout << L"\u00BF";
}