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++ Core » SetLanguage + Rus
SetLanguage + Rus [message #40790] Tue, 17 September 2013 07:46 Go to next message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
My default Windows language is Rus, but by default FileSel has Eng,
wherein
PromptOK("Привет мир!");//Hello World!

is ok, but with
SetLanguage(GetSystemLNG());=>FileSel obtain Rus
PromptOK("Привет мир!");//incorrect encoding

[Updated on: Tue, 17 September 2013 07:46]

Report message to a moderator

Re: SetLanguage + Rus [message #40823 is a reply to message #40790] Sat, 21 September 2013 18:52 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
The most likely cause is that GetSystemLNG returns current 8-bit character encoding of host OS, while text you have written in theide is, by default, UTF-8.

Try

SetLanguage(SetLNGCharset(GetSystemLNG(), CHARSET_UTF8));


Mirek
icon14.gif  Re: SetLanguage + Rus [message #40838 is a reply to message #40823] Sun, 22 September 2013 19:39 Go to previous messageGo to next message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
It's work, rescued!
Re: SetLanguage + Rus [message #40943 is a reply to message #40838] Fri, 11 October 2013 10:05 Go to previous messageGo to next message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
http://i057.radikal.ru/1310/5b/a3072cf6cd55.jpg

Special folder translated, but internally not:
At left - FileSel dialog
At right - my Windows actualy view

For example, Music must be "Моя музыка". It exist in T-file, but not used in FileSel code (Load method).

[Updated on: Fri, 11 October 2013 10:06]

Report message to a moderator

Re: SetLanguage + Rus [message #40972 is a reply to message #40943] Wed, 16 October 2013 07:53 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Ha, I have to say I am really surprised that windows translates the names of those folders... On filesystem, it is still "Music".

It is quite weird hack on windows part.

Will think about that.

Mirek
Previous Topic: Algo.h rev6429 small bug
Next Topic: CParser small bug in ReadInt64(int64 min, int64 max)
Goto Forum:
  


Current Time: Thu Mar 28 15:41:26 CET 2024

Total time taken to generate the page: 0.01063 seconds