Error showing unicode strings (Chinese) in Headers URGENT!!!

TeeChart for ActiveX, COM and ASP
Post Reply
teltronic
Newbie
Newbie
Posts: 3
Joined: Mon Mar 27, 2006 12:00 am

Error showing unicode strings (Chinese) in Headers URGENT!!!

Post by teltronic » Thu Jul 19, 2007 9:33 am

Hi,

I´m trying to show chinese strings in chart Headers and i only obtain question marks.

Example:

CString strTitle1 = _T("산자");

COleVariant varTitle1(strTitle1);

m_Chart1.GetHeader().GetText().Add(varTitle1);

The result is the next string:
??

I'm already using TeeChartAX7MultiLangUnicode.

This problem doesn't appear in Legends or axis titles.

I hope you can find a solution.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jul 23, 2007 3:29 pm

Hi,

to be able to show the unicode characters on this way you should code the title, using the following code to change it should work fine :
TChart1.Header.Caption = TChart1.Environment.CodeUTF8String("부동산자산 ")

Post Reply