Page 1 of 1
Chinese Character Display Problem
Posted: Wed Jul 08, 2009 9:20 am
by 15053325
Dear Sir,
My OS is Server 2008 + IIS7,
1. use GenChart.aspx(to generate Chart file web page and saved as stream, use response.write() to displayed web page, and
2. show.aspx(use script-TeeChart.Import.LoadfromUrl(xxx) to load files generated from GenChart.aspx
Problem :
after importing, Chinese character could not be displayed, shown as weird character. Tried to set FontFont.Charset=136(臺灣繁體中文),Font.Name=”標楷體” DFKai-sb, but failed.
Please advise, thanks.
Re: Chinese Character Display Problem
Posted: Wed Jul 08, 2009 11:45 am
by yeray
Hi DSC,
Could you please tell us what exact TeeChart version are you using? Are you using the unicode version of TeeChart?
Could you please attach here a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
Re: Chinese Character Display Problem
Posted: Fri Jul 10, 2009 9:35 am
by 15053325
Hi,
Answers for your questions,
1. Could you please tell us what exact TeeChart version are you using?
TeeChart Pro ActiveX Version 8
TeeChart8.ocx V8.0.0.5
TeeChart.dll V8.0.0.1
AxInterop.TeeChart.dll V8.0.0.1
2. Are you using the unicode version of TeeChart?
No, I installed the TeeChart8Activex.exe. The file name of the Unicode version was TeeChartAx8Unicode.exe. I didn’t install it .
3. Could you please attach here a simple example project we can run as-is to reproduce the problem here?
As attached.
Re: Chinese Character Display Problem
Posted: Tue Jul 14, 2009 7:58 am
by yeray
Hi DSC,
Then you should use CodeUTF8String function to show your unicode strings. This works fine in the example you attached:
Code: Select all
TChart.Header.Text.Add(TChart.Environment.CodeUTF8String("鋼捲號碼:653420 產出日期:2009/06/12 13:23:00 訂單資訊:oooxxxxx", True))
Re: Chinese Character Display Problem
Posted: Wed Jul 15, 2009 8:15 am
by 15053325
Hi Yeray,
Tried the method you instructed, but the problem remains. Please refer to the attached three files for details.
1. Code.JPG is the program. 2. picture.JPG is the diagram 3. debug.JPG is the diagram after running debug.
In addition, the Server2008 edition we use is English edition, and we also use Traditional Chinese language pack as well (the language pack is released by Microsoft). Just wondering if this would have any connection with the problem?
Re: Chinese Character Display Problem
Posted: Fri Jul 17, 2009 8:38 am
by yeray
Hi DSC,
It's really strange. We'd like you to do some tests to ensure that this is a TeeChart related problem, first, and to try to identify the origin of the problem, second.
First, simply showing a chinese string in a message box works fine?
Second, we recommend you to download and use the unicode version available at the
customers download area.
Third, could you please test if the
UnicodeTest example shipped with the unicode version shows the characters fine?
Thanks in advance.
Re: Chinese Character Display Problem
Posted: Mon Jul 27, 2009 8:52 am
by 15053325
Hi Yeray,
Thank you for your help. The problem resolved.
One final question, why server 2008 needs to have unicode version installed but XP doesn't need?
Re: Chinese Character Display Problem
Posted: Mon Jul 27, 2009 12:59 pm
by yeray
Hi DSC,
Are both OS chineses? This could be due to the differences between the english and the chinese OS distributions.