Solved

Non-Unicode Character Mapping Question

Posted on 2004-09-07
3
198 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 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.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Currency Conversion? 1 84
object oriented design (python) and documentation tools 2 36
Help Required 2 30
What does != "" mean in programming 8 26
This article will show, step by step, how to integrate R code into a R Sweave document
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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…
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…

786 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