Page 1 of 1

Polish characters not working

Posted: Tue Feb 16, 2010 11:37 am
by stuart
Sorry if I am asking a silly question, but I am banging my head on the desk.

I have a sib file that contains English and Polish translations.

I have a string strsMonday thay has values 'Monday' and 'Poniedziałek'.

Unfortunately, when I make a call to GetTextOrDefault to get the appropriate string to display, I get 'Poniedzia³ek' fior the Polish translation.

Why is it returning ³ instead of ł?

Thanks in advance for your assistance.

Stuart

Posted: Tue Feb 16, 2010 3:17 pm
by stuart
Just out of curiosity, it looks like this is down to the charset; can you tell me how to set a polish charset for strings?

Posted: Wed Feb 17, 2010 11:44 am
by isiticov
Hello,
GetTextOrDefault() returns the string as it is. And charset is responsible only when you "display" it. So if you "care" charset when you display that string after using GetTextOrDefault() call then it should be displayed just fine. If you would provide more details on how you display this string, we would try to find the possible problem.

Posted: Mon Feb 22, 2010 4:18 pm
by stuart
Igor

Thanks for that, its all sorted not, however, I have just noticed that Hints that have Polish characters display the strange character. How does the hint get its charset set?

Many thanks.

Stuart

Posted: Mon Feb 22, 2010 4:33 pm
by stuart
Damn :( I have also noticed that TCheckBox components show the funny charaters even though they have the correct font and charset set.

Any ideas please?

Posted: Mon Feb 22, 2010 4:57 pm
by stuart
Igor

Just ignore me.

I put it on a Polish machine, and they were all displaying correctly.

Thanks anyway

Stuart