Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » some non-english characters don't display
Re: some non-english characters don't display [message #4409 is a reply to message #4391] Sat, 05 August 2006 17:04 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
There are two encoding settings that get into the action when you develop your app:

First, there is encoding used to edit the file. However, for the app running, text is just a sequence of bytes; it needs to know how to interpret it.

U++ is basically Unicode/UTF-8 system (most of internal processing ends as unicode). Anyway, as in the real life things are never as simple (e.g. we have to maintain legacy apps in Win-1250 Smile, you can set the "default charset" and most string literals are then converted from it (somewhere in DrawText).

Long story short, please try

SetDefaultCharset(CHARSET_WIN1251)

I guess you will also need set the language, so you can do both using

SetLanguage(LNGC_('R', 'U', 'R', 'U', CHARSET_WIN1251));

BTW, maybe even better is to stay with utf-8, which is "default default encoding", as long as you are not concerned with "external" troubles.

Mirek

[Updated on: Sat, 05 August 2006 17:06]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon9.gif
Read Message
Read Message icon9.gif
Read Message
Read Message
Read Message icon10.gif
Previous Topic: Code that needs to be internationalized
Next Topic: How to display several languages without translation files?
Goto Forum:
  


Current Time: Fri Apr 19 20:45:10 CEST 2024

Total time taken to generate the page: 0.04361 seconds