Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. "Language for non-Unicode programs " affects my unicode program

"Language for non-Unicode programs " affects my unicode program

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    code_discuss
    wrote on last edited by
    #1

    in Windows, Control Panel > Regional and Language Options > Advanced > Language for non-Unicode programs It says that 'It does not affect Unicode programs' But as to my program, if I choose English as the 'Language for non-Unicode programs', everything is fine. my program can show Chinese or Korean both in menus and dialogs. but if I choose Chinese as the 'Language for non-Unicode programs', My program can't display Korean, if I choose Korean, my program can't display Chinese. So it seems that my program is affected by this setting. Maybe my program is not a unicode program? I used UNICODE _UNICODE, and I set wWinMainCRTStartup as the entry point. everything seems working. So where shall I check? I don't want my program to be affected by this Windows setting.

    M 1 Reply Last reply
    0
    • C code_discuss

      in Windows, Control Panel > Regional and Language Options > Advanced > Language for non-Unicode programs It says that 'It does not affect Unicode programs' But as to my program, if I choose English as the 'Language for non-Unicode programs', everything is fine. my program can show Chinese or Korean both in menus and dialogs. but if I choose Chinese as the 'Language for non-Unicode programs', My program can't display Korean, if I choose Korean, my program can't display Chinese. So it seems that my program is affected by this setting. Maybe my program is not a unicode program? I used UNICODE _UNICODE, and I set wWinMainCRTStartup as the entry point. everything seems working. So where shall I check? I don't want my program to be affected by this Windows setting.

      M Offline
      M Offline
      Matthew Faithfull
      wrote on last edited by
      #2

      If you're using Windows CE up to 5.0 then you've simply run up against the 'can't use more than one east asian language' (Chinese, Japanese, Korean) limitation which is built into CE. It sounds more like XP in which case your problem would likely be with the default code page as I think that's what's being set in the dialog you mention. Somewhere in your code the default code page is being referenced in a conversion from UNICODE to ANSI characters and setting it to non English is messing up one set of characters or the other. I suspect that when the default code page is English Windows can detect Chinese and Korean characters because they're all 'invalid' in the old ASCII range but when it's Chinese the Korean character values look valid. (Beause of CJK shared characters some of them probably are ). To be safe accross Windows systems that default to all 3 languages you'll need to find the conversion that's failing and preferably avoid it altogether. Remember to separate what you see (glyphs from a font) from the code points that are being represented. I find it helps to try and think in code points but that's really difficult if you're looking at your native language. I18n is hard, good luck.

      Nothing is exactly what it seems but everything with seems can be unpicked.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups