Ascii char set

Jun 27, 2009 at 12:32pm
Hi, when I output the ascii chars 178 tp 218 in my console using this:

1
2
3
4
for(int i = 179; i < 218; ++i )
{
        std::cout<< i <<" "<< static_cast<char>(i) <<std::endl;
}


my outcome looks like this: http://img44.imageshack.us/img44/9341/31098959.png

However I think it is supposed to look like this: http://www.adrianxw.dk/SoftwareSite/Consoles/CharMap2.gif

Why could this be and is there a way to make my console print the chars as in the second pic?


Any help is appreciated.

spliff
Jun 27, 2009 at 1:34pm
Jun 27, 2009 at 3:09pm
Thanks for your help. But I'm not sure about this. I've printed the Ascii chars using the above code with about 20 different codepages and didn't notice any difference.

//edit: Ok, I found out that the codepage does not affect how extended Ascii chars are displayed when a raster font is used.
Last edited on Jun 27, 2009 at 3:31pm
Jun 28, 2009 at 3:09am
Oh yeah... heh... you need to be using the Lucida Console font...

Sorry for not mentioning that...
Topic archived. No new replies allowed.