# Getting strings and extended ASCII in C++

This topic is 3012 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Okay, I've got a situation. I want to use extended ASCII in strings. Say I do this:
//Declare string with some random junk
string meh = "€EhÄ?";
cout << meh;

The problem is, the string is displayed using the wrong chars. It's using code page 437 instead of the proper 1252. The document IS set to save it in 1252. Oddly, unsigned char[] works, but I need a string that can be appended to. Ultimately, what I want to do is run through the string and run the codes through my font engine, but 437 is obviously going to hamper this. Is there anything I can do to get it to use the right one? Thanks.

1. 1
2. 2
3. 3
Rutin
22
4. 4
JoeJ
17
5. 5

• 14
• 30
• 13
• 11
• 11
• ### Forum Statistics

• Total Topics
631774
• Total Posts
3002295
×