ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  ChartDirector for C++ Can support Chinese language?
Posted by Ramesh on Mar-10-2011 17:37
Hi,

I am using ChartDirector for C++, it is working fine for English language, but I want to support for Chinese language also.

Would suggest me how and where (API's) I need to take care?

Thanks,
Ramesh.

  Re: ChartDirector for C++ Can support Chinese language?
Posted by Peter Kwan on Mar-10-2011 23:03
Hi Ramesh,

Yes. ChartDirector can support Chinese language.

You may refer to the following article on some general information:

http://www.advsofteng.com/unicode_font.html

For C++, the key points are to use UTF8 encoding for the text, and to use fonts that has Chinese characters.

(a) Use UTF8 to encode your text string before passing them to ChartDirector. Do not use Big5 or GB2312 or other encodings.

(b) If the Chinese characters are stored in as an MFC TCHAR string (which can be encoded in UCS2 unicode or MBCS, depending on your Visual Studio project configuration), there is a ChartDirector utility TCHARtoUTF8 that can convert the TCHAR string to UTF8. You may look for TCHARtoUTF8 from the ChartDirector documentation index for more details.

(c) Please make sure you are using a Chinese capable font. If you use the Arial font or Times New Roman font, they will not display Chinese characters, as these fonts do not have Chinese characters.

Hope this can help.

Regards
Peter Kwan