Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Non-Unicode Character Mapping Question

Posted on 2004-09-07
3
Medium Priority
?
226 Views
Last Modified: 2013-12-03
When programming in Windows in a non-Unicode build, can I assume that single-byte characters in my program will always use the ISO-8665-1 character set for characters 128-255?

Or will the meanings of chars in this range depend on language, user preferences, etc.?
0
Comment
Question by:Alkali_Guy
  • 2
3 Comments
 
LVL 1

Expert Comment

by:aorenste32
ID: 12046420
The meanings of chars in that range will depend on the charset being used.  You can specify the Charset when creating the font with CreateFont().
If you use ANSI_CHARSET or DEFAULT_CHARSET then the setting will depend on the locale settings.
0
 
LVL 5

Author Comment

by:Alkali_Guy
ID: 12050329
What if my MFC program outputs (char)233 to a normal text box, on a system that has a different regional character set?  Will the result still be é?
0
 
LVL 1

Accepted Solution

by:
aorenste32 earned 200 total points
ID: 12056212
The result may or may not still be é based on the character set.  For example, on a Japanese native system (codepage 932), the string "fooéy" will display as the unicode characters:
0x0066 (f)
0x006f (o)
0x006f (o)
0x9a2b (a CJK unified ideograph)

I believe that for pretty much all latin-based systems (german, italian, etc) it will display as you want.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Introduction to Processes

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question