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 » UTF8 chars problems from from Linux to Windows
Re: UTF8 chars problems from from Linux to Windows [message #25819 is a reply to message #25766] Sat, 13 March 2010 22:53 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Well, I discovered that in no way this 'gamma' letter can be passed to windows... Maybe it doesn't exist on its charsets.
Replacing it with another 'simil-gamma' found on windows did the trick.

Btw, the other 'big' problem in my app was GetSystemLNG(), which returns not only the language but also the active charmap :

lang = GetSystemLNG();
String langStr = LNGAsText(lang);


lang is 18141492 and langStr is "IT-IT windows-1252" in my machine.
Not sure about but, doing

SetLanguage(lang);


seems to activate both italian language AND 1252 codepage, making all UTF8 chars in app to disappear and/or be scrambled.
The solution was :

lang = GetSystemLNG();
String langStr = LNGAsText(lang).Left(5);
lang = LNGFromText(langStr);
SetLanguage(lang);


stripping so the codepage from language string and reconverting to integer, which in my machine gives lang=315700 and langStr="IT-IT" and allows UTF8 chars to behave as usual.
Note that this problem arose just on windows; on Linux it was all ok.

Ciao

Max
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Updated romanian translation
Next Topic: Updated spanish translation
Goto Forum:
  


Current Time: Thu Apr 25 08:59:21 CEST 2024

Total time taken to generate the page: 0.04907 seconds