Page 1 of 1

Chinese Characters destroy in SIL file

Posted: Wed Nov 02, 2022 8:17 am
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 38438 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 38438 times
SIL File.png
SIL File.png (73.91 KiB) Viewed 38438 times
What is wrong here?

Thank you for your support.

Re: Chinese Characters destroy in SIL file

Posted: Wed Nov 02, 2022 10:33 am
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?

Re: Chinese Characters destroy in SIL file

Posted: Wed Nov 02, 2022 12:11 pm
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

Re: Chinese Characters destroy in SIL file

Posted: Wed Nov 02, 2022 12:36 pm
by isiticov
Could you please send us the sample DFM + PAS and we will check this on our side?

Re: Chinese Characters destroy in SIL file

Posted: Wed Nov 02, 2022 1:31 pm
by christoph
Hello Igor,

please find the dfm + pas file in the attachment.

Regards
Christoph

Re: Chinese Characters destroy in SIL file

Posted: Wed Nov 02, 2022 5:25 pm
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.

Re: Chinese Characters destroy in SIL file

Posted: Thu Nov 03, 2022 11:01 am
by christoph
Hello Igor,

see the sil file in the attachment.

Regards
Christoph

Re: Chinese Characters destroy in SIL file

Posted: Fri Nov 04, 2022 3:42 pm
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.

Re: Chinese Characters destroy in SIL file

Posted: Fri Nov 04, 2022 4:33 pm
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

Re: Chinese Characters destroy in SIL file

Posted: Sat Nov 05, 2022 10:51 am
by isiticov
Can't give now the precise ETA, but hopefully in a couple of weeks.