Skip to main content
GameDev.net gamedev.net
🔒 Locked

Application support for special characters

Started by ArthY303 Apr 18, 2011 at 8:23 PM 3 replies 2.3k views
Original Post
ArthY303
ArthY303
Hello! I have an application with a lot of win32 controls, like text fields. The application uses the Multi-Byte character set (I'm using Visual Studio 2008). Can I add support for characters like ? â î ? ? ? ? without switching to Unicode? I would like to be able to display labels with these characters, as well as have the user type these kinds of characters in the text field and see the correct result (at the current time if I try to write one of the characters in one of the text fields I get strange garbage characters).
Oh ... I forgot to mention that I'm using C++.


Thank you.
Anon Mike
Anon Mike
Just switch to Unicode and be done with it.

Saying that you are using "the Multi-Byte character set" meaningless. There are literally hundreds of them, all different. Some will support the "special" character you care about and some won't. This is exactly the problem Unicode is meant to solve.
-Mike
jbadams
jbadams
Is there any particular reason you don't want to switch to Unicode?
- Jason Astle-Adams
ArthY303
ArthY303
Thanks for the answers.

@jbadams: I just want to add support for a couple of characters (the ones mentioned in my original post) and I want to keep changes to a minimum. Is there any way I can do this ?

TSlappy
TSlappy
Are your characters in ASCII table?
If so then check appropriate font you use whether font contain these characters.
What type of C++ program is it? Simple Win/console app of some game?
I create cool-looking Graphical Installers in NSIS:
http://unsigned-softworks.sk/installer
http://unsigned-softworks.sk/en/images/gallery/solutions/solution_1.jpg
http://unsigned-softworks.sk/en/images/gallery/technical/technical_1.jpg

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.