ReadIniStr doesn't read UTF8 file correctly.
I have a ini file in UTF8 format with BOM. I am using the unicode version of nsis. But the ReadIniStr function doesn't seem to read the ini file correctly. What can I do to solve this issue?
Archive: ReadIniStr doesn't read UTF8 file correctly.
ReadIniStr doesn't read UTF8 file correctly.
I have a ini file in UTF8 format with BOM. I am using the unicode version of nsis. But the ReadIniStr function doesn't seem to read the ini file correctly. What can I do to solve this issue?
ReadINIStr uses the GetPrivateProfileString API. Try encoding in full Unicode UTF-16 (without any BOM).
Stu
Originally posted by Afrow UK...with UTF-16 BOM
ReadINIStr uses the GetPrivateProfileString API. Try encoding in full Unicode UTF-16 (without any BOM).
Stu
Originally posted by AndersActually I'm pretty sure it will miss the first section if you use a BOM unless you insert a blank line at the top.
...with UTF-16 BOM