Page 1 of 1

Chinese words are not shown properly

Posted: Mon Nov 17, 2008 7:08 pm
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.

Posted: Tue Nov 18, 2008 11:11 am
by isiticov
Hello,

Do you have installed support for Far East languages in Control Panel?

Posted: Tue Nov 18, 2008 7:50 pm
by Riquleme
Yes, I have. Also I am able to type Chinese words.

Posted: Wed Nov 19, 2008 6:33 am
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.

Posted: Wed Nov 19, 2008 11:35 pm
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?

Posted: Thu Nov 20, 2008 3:19 am
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?

Posted: Thu Nov 20, 2008 9:11 pm
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.

Posted: Fri Nov 21, 2008 4:26 am
by isiticov
Just send it to support _at_ sicomponents _dot_ com.

Posted: Fri Nov 21, 2008 9:51 pm
by Riquleme
The example has been sent. Thanks.

Posted: Sun Nov 23, 2008 11:49 am
by isiticov
No attachments were sent.

Sent again

Posted: Tue Nov 25, 2008 5:24 pm
by Riquleme
Sorry, my bad.
I have sent again. Look forward to your reply.

Posted: Wed Nov 26, 2008 9:27 am
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.