Non-Unicode Character Mapping Question

Posted on 2004-09-07
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.?
Question by:Alkali_Guy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

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.

Author Comment

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 é?

Accepted Solution

aorenste32 earned 50 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.

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
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.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

695 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