Edit INI File - Problems with Unicode
Posted: Tue Jul 02, 2013 4:45 am
Hi,
After upgrading to IA16, I noticed that for some reason my program does not read the INI-files edited by IA-installer anymore. Reason seems to be that IA converts the INI file to UTF-8 with BOM (http://en.wikipedia.org/wiki/Byte_order_mark) in the beginning of file. Strangely enough, IA does not seem to be able to read such files itself. However, read-problems can be fixed by inserting an empty line in the beginning of file. I guess this has something to do with old Microsoft libraries that do not understand BOM?
So, as a heads up to other users if a fix is not possible:
1. InstallAware 16 outputs INI-files that are UTF-8 even if the original file is ANSI.
2. InstallAware 16 "Edit INI File" -function does not work correctly if the original file is already UTF-8 (with BOM). Fix below.
3. UTF-8 INI file read problems (in any program) can be fixed by inserting an empty line at the beginning of file.
Staff, please try this out and comment.
After upgrading to IA16, I noticed that for some reason my program does not read the INI-files edited by IA-installer anymore. Reason seems to be that IA converts the INI file to UTF-8 with BOM (http://en.wikipedia.org/wiki/Byte_order_mark) in the beginning of file. Strangely enough, IA does not seem to be able to read such files itself. However, read-problems can be fixed by inserting an empty line in the beginning of file. I guess this has something to do with old Microsoft libraries that do not understand BOM?
So, as a heads up to other users if a fix is not possible:
1. InstallAware 16 outputs INI-files that are UTF-8 even if the original file is ANSI.
2. InstallAware 16 "Edit INI File" -function does not work correctly if the original file is already UTF-8 (with BOM). Fix below.
3. UTF-8 INI file read problems (in any program) can be fixed by inserting an empty line at the beginning of file.
Staff, please try this out and comment.