Depends on system code page?
Posted: Tue Mar 09, 2004 12:19 am
I have a problem and not much time left to solve it.
I'm translating a program so that it will work in both Englich and Greek.
It now works fine when the system locale is set to Greek.
When the system locale is set to English, all the greek text comes out with lots of question marks, like this "???sate t? control menu st? p????aua e?st?????: ?p????te"
I recognize this as what happens when you take Unicode in Greek and do MultibyteToWideChar using an English code page.
It looks like something in tsiLang is doing translations specifying CP_ACP rather than using a code page appropriate to the language.
I just discovered that if I open the internal translator with the system code page set to English that all my Greek strings come out the same way.
How can I make my program appear in Greek or English according to the menu selection, indpendent of the system locale setting?
I'm translating a program so that it will work in both Englich and Greek.
It now works fine when the system locale is set to Greek.
When the system locale is set to English, all the greek text comes out with lots of question marks, like this "???sate t? control menu st? p????aua e?st?????: ?p????te"
I recognize this as what happens when you take Unicode in Greek and do MultibyteToWideChar using an English code page.
It looks like something in tsiLang is doing translations specifying CP_ACP rather than using a code page appropriate to the language.
I just discovered that if I open the internal translator with the system code page set to English that all my Greek strings come out the same way.
How can I make my program appear in Greek or English according to the menu selection, indpendent of the system locale setting?