Chinese Character Display Problem

TeeChart for ActiveX, COM and ASP
Post Reply
DSC
Newbie
Newbie
Posts: 17
Joined: Wed May 20, 2009 12:00 am
Location: Taichung, Taiwan

Chinese Character Display Problem

Post by DSC » Wed Jul 08, 2009 9:20 am

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.
Attachments
2008.JPG
2008.JPG (110.65 KiB) Viewed 12043 times

Yeray
Site Admin
Site Admin
Posts: 9601
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chinese Character Display Problem

Post by Yeray » Wed Jul 08, 2009 11:45 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

DSC
Newbie
Newbie
Posts: 17
Joined: Wed May 20, 2009 12:00 am
Location: Taichung, Taiwan

Re: Chinese Character Display Problem

Post by DSC » Fri Jul 10, 2009 9:35 am

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.
Attachments
Test.rar
(108.1 KiB) Downloaded 716 times

Yeray
Site Admin
Site Admin
Posts: 9601
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chinese Character Display Problem

Post by Yeray » Tue Jul 14, 2009 7:58 am

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))
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

DSC
Newbie
Newbie
Posts: 17
Joined: Wed May 20, 2009 12:00 am
Location: Taichung, Taiwan

Re: Chinese Character Display Problem

Post by DSC » Wed Jul 15, 2009 8:15 am

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?
Attachments
debug.JPG
debug.JPG (34.97 KiB) Viewed 11964 times
picture.JPG
picture.JPG (31.34 KiB) Viewed 11962 times
code.JPG
code.JPG (112.03 KiB) Viewed 11961 times

Yeray
Site Admin
Site Admin
Posts: 9601
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chinese Character Display Problem

Post by Yeray » Fri Jul 17, 2009 8:38 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

DSC
Newbie
Newbie
Posts: 17
Joined: Wed May 20, 2009 12:00 am
Location: Taichung, Taiwan

Re: Chinese Character Display Problem

Post by DSC » Mon Jul 27, 2009 8:52 am

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?

Yeray
Site Admin
Site Admin
Posts: 9601
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chinese Character Display Problem

Post by Yeray » Mon Jul 27, 2009 12:59 pm

Hi DSC,

Are both OS chineses? This could be due to the differences between the english and the chinese OS distributions.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply