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 

Save project in unicode

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



Joined: 02 May 2006
Posts: 23

PostPosted: Mon Feb 16, 2009 4:14 pm    Post subject: Save project in unicode Reply with quote

My project supports some languages at the moment. Until now I could save the project to a SIL file and someone external could do an translation.
Now I have an additional language: Russian
I can load the SIL file and the application shows Cyrillic letters for Russian language. But when saving the project, all Cyrillic letters are gone and and question marks (?) are visible. Therefore I can't save and load the project (SIL file) anymore. I checked the same with binary files (SIB), but the same problem occurs.
The SIL file should be saved in Unicode (UTF-Cool and not in ANSI. How can I achieve this?

I am using version 6.3.1.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Tue Feb 17, 2009 5:59 am    Post subject: Reply with quote

This will be fixed in forthcoming version 6.4. Thank you for reporting this.
Back to top
View user's profile Send private message
Phoner



Joined: 02 May 2006
Posts: 23

PostPosted: Tue Feb 17, 2009 8:26 am    Post subject: Reply with quote

Do you have a time schedule for that new version?
Thanks in advance!
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Tue Feb 17, 2009 2:22 pm    Post subject: Reply with quote

If nothing happens it shall be released in couple of days.
Back to top
View user's profile Send private message
Phoner



Joined: 02 May 2006
Posts: 23

PostPosted: Fri Feb 20, 2009 11:29 am    Post subject: Reply with quote

OK, I installed version 6.4 now. But I still have the same problem. I can use the IDE integrated "TsiLang Expert" and see all my supported languages, including Russian with Cyrillic letters.
But I am not able to save the project to a sil file without destroying the Russian language. Opening the saved sil file with SilEditor the Russian language only contains question marks - no Cyrillic letters anymore.
Do I have to save the project in a different way?

If I save the project into a sib file, it seems to work! Do I need to set the StoreAsUTF8 property now?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Fri Feb 20, 2009 1:14 pm    Post subject: Reply with quote

No, StoreAsUTF8 does nothing under Delphi 2009 as it already stores all the strings as UTF8.
Do you have Russian_Charset defined for Russian language in TsiLang's Charsets section?
Back to top
View user's profile Send private message
Phoner



Joined: 02 May 2006
Posts: 23

PostPosted: Fri Feb 20, 2009 1:54 pm    Post subject: Reply with quote

It was DEFAULT_CHARSET. I changed it to RUSSIAN_CHARSET and it works now. I can save to SIL file too now.
Thanks a lot.

If I understand you right, I shouldn't set StoreAsUTF8 using Delphi 2009?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Fri Feb 20, 2009 6:04 pm    Post subject: Reply with quote

Yes, if you use only Delphi 2009 then you can ignore this property and leave it False as default.
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