Sign in to follow this  

Getting strings and extended ASCII in C++

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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this