Polish characters not working

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
stuart
Posts: 16
Joined: Wed Dec 17, 2008 11:34 am

Polish characters not working

Post 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
stuart
Posts: 16
Joined: Wed Dec 17, 2008 11:34 am

Post 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?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.
Best regards,
Igor Siticov.
stuart
Posts: 16
Joined: Wed Dec 17, 2008 11:34 am

Post 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
stuart
Posts: 16
Joined: Wed Dec 17, 2008 11:34 am

Post 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?
stuart
Posts: 16
Joined: Wed Dec 17, 2008 11:34 am

Post by stuart »

Igor

Just ignore me.

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

Thanks anyway

Stuart
Post Reply