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.