Chinese Characters destroy in SIL file

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
christoph
Posts: 5
Joined: Mon Oct 31, 2022 12:14 pm

Chinese Characters destroy in SIL file

Post by christoph »

Hello,
I use Delphi Tokyo with TSILang 7.9.3 and have problems with the Unicode characters. In the SILEditor in the Delphi IDE the Characters are correct.
If I save (Export) this into a sil file the Unicode characters ar broken. The Option StoreAsUTF8 is on.
I also save the Font as Tohoma and the Characterset as GB2312_Characterset for Chinese.
The PC has Chinese installed as Characterset

In Delphi everything looks fine
SIL Editor in Delphi
SIL Editor in Delphi
SILEditor in Delphi.png (84.92 KiB) Viewed 36168 times
After Export to file and open in SIL Editor Chinese Characters are broken
SIL Editor after saving as File
SIL Editor after saving as File
SILEditor after saving as file.png (79.06 KiB) Viewed 36168 times
SIL File.png
SIL File.png (73.91 KiB) Viewed 36168 times
What is wrong here?

Thank you for your support.
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Re: Chinese Characters destroy in SIL file

Post by isiticov »

christoph wrote: Wed Nov 02, 2022 8:17 am If I save (Export) this into a sil file the Unicode characters ar broken. The Option StoreAsUTF8 is on.
Hello,

Do you export from the Translations Editor or from TsiLang Expert. Try to export from TsiLang Expert: run TsiLang Expert from the Tools menu, then select the form and click Save to File. Please check if the file will be different?
Best regards,
Igor Siticov.
christoph
Posts: 5
Joined: Mon Oct 31, 2022 12:14 pm

Re: Chinese Characters destroy in SIL file

Post by christoph »

Hello Igor,

Thank you for your fast answer.

Yes, I export from the Translation Editor. Now I checked the Export from the TsiLang Expert. I get the same result with the corrupted
Chinese Characters.

Regards
Christoph
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Re: Chinese Characters destroy in SIL file

Post by isiticov »

Could you please send us the sample DFM + PAS and we will check this on our side?
Best regards,
Igor Siticov.
christoph
Posts: 5
Joined: Mon Oct 31, 2022 12:14 pm

Re: Chinese Characters destroy in SIL file

Post by christoph »

Hello Igor,

please find the dfm + pas file in the attachment.

Regards
Christoph
Attachments
frm_About2.zip
(67.17 KiB) Downloaded 912 times
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Re: Chinese Characters destroy in SIL file

Post by isiticov »

Hello Christoph,

Thank you for the file. Could you please also send the SIL file that you create on your side from this file? Because on our side the created SIL file is just fine. But we're continuing the research.
Best regards,
Igor Siticov.
christoph
Posts: 5
Joined: Mon Oct 31, 2022 12:14 pm

Re: Chinese Characters destroy in SIL file

Post by christoph »

Hello Igor,

see the sil file in the attachment.

Regards
Christoph
Attachments
H4.zip
(773 Bytes) Downloaded 903 times
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Re: Chinese Characters destroy in SIL file

Post by isiticov »

Hello Christoph,
Many thanks for sending all the files. We've identified the problem and it is already fixed in the forthcoming 7.9.4 release. That's why everything worked fine on our side when we tested it with the development version. Just wait for the 7.9.4 release, or meantime you can use either:
1. Set StoreAsUtf8 to False then SIL file will be correct in 99% of cases as Simplified Chinese chars in most cases fall into ANSI range.
2. Use SIB file as storage. SIB will work just fine.

Or just wait till 7.9.4 release.
Thank you so much again for all the info provided.
Best regards,
Igor Siticov.
christoph
Posts: 5
Joined: Mon Oct 31, 2022 12:14 pm

Re: Chinese Characters destroy in SIL file

Post by christoph »

Hello Igor,
Thank you for your answer and the solution.
Do you have an idea when Version 7.9.4 will be release?

Best regards,
Christoph
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Re: Chinese Characters destroy in SIL file

Post by isiticov »

Can't give now the precise ETA, but hopefully in a couple of weeks.
Best regards,
Igor Siticov.
Post Reply