cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Pilgrim

??? while writing chinese characters to config file.

HI All,

We have created install shield project for our application with multiple language support. Everything is working fine, recently we have added the Chinese language and facing some problem while writing the user input to config file, the Chinese characters are displaying as ??? in config file.

Here is the code to update the entered input to config file.
ConfigAdd (driverAttribute2, driverAttr2, "", REPLACE)
Where driverAttribute2 is key, driverAttr2 is the Chinese text.

Any suggestions?

Regards,
Hareen.
Labels (1)
0 Kudos
3 Replies
Highlighted
Flexera beginner

Re: ??? while writing chinese characters to config file.

Maybe your config file is an ANSI not a UNICODE file.
Open your config file with notepad and use 'save as', then check the encoding of your file. If ANSI is shown the chinese characters cannot be stored.
0 Kudos
Highlighted
Pilgrim

Re: ??? while writing chinese characters to config file.

Hi stefanm1,

Thanks for reply. I checked the file encoding it is in UTF-8, Is UTF-8 encoding cause for the proble?
0 Kudos
Highlighted
Pilgrim

Re: ??? while writing chinese characters to config file.

Hi stefanm1,

Thanks, I have changed the file to Unicode and it worked.
0 Kudos