Page 1 of 1

Can't display chinese in chart series

Posted: Fri Sep 29, 2006 3:11 am
by 6933488
Hi,
I am using TChart1.Series(currSeries).Add Val(tmpArr(i + 1)), str1, getColor(i), whereby str1 is declare as string in VB6 & contain chinese character. But it end up displaying 'Thai' character like string in TeeChart.

I am using TeeChart Pro v5.0.6. The component works perfectly in english for years, but recently we added chinese language option in our application and having the problem mentioned.

Hope can get some hints to solve this problem.

Posted: Fri Sep 29, 2006 8:08 am
by narcis
Hi Cliven,

TeeChart ActiveX interfaces support WideString. WideString accepts multi-byte character input, that may be 1, 2 , 4, etc bytes. That should work correctly in Chinese native machines. There are limitations in non native machines (eg. English operating system and non-unicode (2 byte) locale set to Chinese) because strings used internally in TeeChart ActiveX are Ansistring and there have been problems in the conversion from Widestring. There is a test version on the TeeChart Customer download page that offers improved support for the handling of Widestrings in all environments, any feedback would be welcome on that version. The problem is that this test version is only available for the latest TeeChart Pro v7.