This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- ??? while writing chinese characters to config file.
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 07, 2012
12:11 AM
??? 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.
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.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 09, 2012
06:45 AM
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.
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 09, 2012
10:16 AM
Hi stefanm1,
Thanks for reply. I checked the file encoding it is in UTF-8, Is UTF-8 encoding cause for the proble?
Thanks for reply. I checked the file encoding it is in UTF-8, Is UTF-8 encoding cause for the proble?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 15, 2012
01:32 AM
Hi stefanm1,
Thanks, I have changed the file to Unicode and it worked.
Thanks, I have changed the file to Unicode and it worked.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)