SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Polish characters not working

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
stuart



Joined: 17 Dec 2008
Posts: 16

PostPosted: Tue Feb 16, 2010 11:37 am    Post subject: Polish characters not working Reply with quote

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
Back to top
View user's profile Send private message
stuart



Joined: 17 Dec 2008
Posts: 16

PostPosted: Tue Feb 16, 2010 3:17 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Wed Feb 17, 2010 11:44 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
stuart



Joined: 17 Dec 2008
Posts: 16

PostPosted: Mon Feb 22, 2010 4:18 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
stuart



Joined: 17 Dec 2008
Posts: 16

PostPosted: Mon Feb 22, 2010 4:33 pm    Post subject: Reply with quote

Damn Sad I have also noticed that TCheckBox components show the funny charaters even though they have the correct font and charset set.

Any ideas please?
Back to top
View user's profile Send private message
stuart



Joined: 17 Dec 2008
Posts: 16

PostPosted: Mon Feb 22, 2010 4:57 pm    Post subject: Reply with quote

Igor

Just ignore me.

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

Thanks anyway

Stuart
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group