cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hareen
Level 3

??? 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
stefanm1
Level 4

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
hareen
Level 3

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
hareen
Level 3

Hi stefanm1,

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