Chinese Character Issue


Hi,

Need help as i am stuck in following issue

I am passing string array from PowerBuilder to VC++ which contains english and chinese characters and in VC++ its get stored in char ** type. when i am accessing chinese character its
showing ??????
I have set character set to Use Multi-Byte Character Set
i have set language code page to "Chinese (PRC)

I tried replacing char** with wchar_t ** but after conversion it converts all data in chinese chracter including english character.

I would be greadful if help on this
closed account (zb0S216C)
I don't know if it will help but you could try reading this post: http://www.cplusplus.com/forum/beginner/22291/
Above link doest helped me to solve the problem.
Requesting you to put some details
Can you show us the exact code that is having the problem?
Step 1: Figure out the encoding that you are passing around.
Following is the function where PowerBuilder application passing value in field as_fieldvalue to which contains chinese character.

long PB_EXPORT addFields( n_cst_objsrv_rtfmerge *this_hdl,
long fieldCount, char ** as_fieldname, char ** as_fieldvalue, char ** as_formatvalue, long * ab_isnull) {
return( this_hdl->addFields( fieldCount,as_fieldname, as_fieldvalue, as_formatvalue, ab_isnull));

I have set character set to Use Multi-Byte Character Set
Topic archived. No new replies allowed.