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 

Umlauts in extended translations not loading correctly.

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



Joined: 12 Jan 2010
Posts: 14

PostPosted: Tue Oct 26, 2010 5:36 am    Post subject: Umlauts in extended translations not loading correctly. Reply with quote

Hi again.

My current problem involves umlauts again. Basically, if I load my translations from the SIL file, any text with umlauts which are loaded into the form (for example, Captions, Items, Multilines and other extended translations) are not loaded correctly.

Standard letters are fine, but I will generally see changes such as:

becomes ä

becomes ü

becomes ö

However, these changes are only shown when displayed in the form. When opening the translation editor for the form, everything is normal.

After this, if I save to a SIL file without fixing them, the changes are output, and next time I load, additional unwanted characters are introduced, and this will stack each time.

I'm using C++ Builder 6, and I've made sure the fonts and charsets are fine for displaying Umlauts.

Any tips on how to fix this?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Wed Nov 10, 2010 4:52 pm    Post subject: Reply with quote

Hello,

Sorry for the delay with reply, I've missed this topic. The problem really looks like using UTF8 in non UTF8 environment. May be hte file was stored with UTF8 encoding but later the UTF8 flag was removed?
Back to top
View user's profile Send private message
Thrillhouse



Joined: 12 Jan 2010
Posts: 14

PostPosted: Wed Nov 10, 2010 9:33 pm    Post subject: Reply with quote

I'll have a play around with that and see if it helps. Thanks for the suggestion.
Back to top
View user's profile Send private message
Thrillhouse



Joined: 12 Jan 2010
Posts: 14

PostPosted: Fri Dec 17, 2010 12:15 am    Post subject: Reply with quote

It seems to have been a problem in which the file was stored as an ANSI file, but the text option within the file, "IsUTF8File", was set to 1, so it was getting confused. Making sure this was set to 0 and keeping the file in ANSI encoding seems to have resolved all of my text display issues.
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