Chinese words are not shown properly

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Riquleme
Posts: 8
Joined: Fri Nov 14, 2008 11:48 pm

Chinese words are not shown properly

Post by Riquleme »

Hi, I think this is a same old story that many people have already encountered.

I follow the simple example in the developer's manual, and I have two languages: English and Simplified Chinese. Chinese is always shown as ???? in Translation Editor. I did check the steps on the page "Adding Support for Far East or other Unicode languages", but it still doesn't work.

My setup is as follows:

CharSets in Translations tree:

Component English Simplified Chinese
TMainForm DEFALUT_CHARSET GB2312_CHARSET
StatusBar DEFALUT_CHARSET GB2312_CHARSET

Fonts in Translations tree:

Component English Simplified Chinese
TMainForm Default Tahoma
StatusBar Default Tahoma

Default Fonts in Tools

I changed the Simplified Chinese item to the following:
Simplified Chinese Tahoma GB2312_CHARSET

And then I click "replace" button to replace whatever it was.

So that is all I did, is there anything I missed or something wrong?

And one more question, what is the relationship of settings in (a) Defalt fonts window and (b) settings in Fonts and CharSets in Translation tree. Which settings ( a or b ) really affect how the words are shown?

Thank you in advance.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Hello,

Do you have installed support for Far East languages in Control Panel?
Best regards,
Igor Siticov.
Riquleme
Posts: 8
Joined: Fri Nov 14, 2008 11:48 pm

Post by Riquleme »

Yes, I have. Also I am able to type Chinese words.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Does Translation Editor displays ??? for Chinese under all sections?
Do you have the Chinese language name the same as in Default Fonts.
Translation Editor uses settings from Fonts and Charsets sections to draw component's strings and Default Fonts to draw strings in sections like Strings and Dialogs.
Best regards,
Igor Siticov.
Riquleme
Posts: 8
Joined: Fri Nov 14, 2008 11:48 pm

Post by Riquleme »

isiticov wrote:Does Translation Editor displays ??? for Chinese under all sections?
Yes, all sections.
isiticov wrote:Do you have the Chinese language name the same as in Default Fonts.
Yes they are the same. CharSet as GB2312_CHARSET, Font as SimHei (I also tried Tahoma).

Any thoughts?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Really strange. What OS do you use?
Could you please send us a sample project and we will open it on our side to check?
Best regards,
Igor Siticov.
Riquleme
Posts: 8
Joined: Fri Nov 14, 2008 11:48 pm

Post by Riquleme »

The system I am working on is Windows XP Version 2002, SP 3.

How do I forward my sample to you?

Thank you very much for your continuous reply.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Just send it to support _at_ sicomponents _dot_ com.
Best regards,
Igor Siticov.
Riquleme
Posts: 8
Joined: Fri Nov 14, 2008 11:48 pm

Post by Riquleme »

The example has been sent. Thanks.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

No attachments were sent.
Best regards,
Igor Siticov.
Riquleme
Posts: 8
Joined: Fri Nov 14, 2008 11:48 pm

Sent again

Post by Riquleme »

Sorry, my bad.
I have sent again. Look forward to your reply.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Thank you for re-sending.
1. In the sources you sent there is no Chinese values presented at all.
2. We've tested and Chinese words displayed properly. Could you try to add some Chinese translations to Dictionary Manager and later use Auto-Translate in Translations Editor to check if this works better.
3. In the SIL files you sent we've noticed that you've used "*" as delimiter. We would say that this is a bad choice as translations may include such char inside and this causes invalid data loading when loading from external file.
Best regards,
Igor Siticov.
Post Reply