QSettings unicode problem
Hello,
I want to read settings from an INI file, which is in UTF16-LE format. After reading the docs I thought it is possible by something like this:
Code:
settings.setIniCodec("UTF-16LE");
settings.value("animal/snake", 1024).toString();
But when I try to read values, it looks like he is still reading ascii format. Does anyone know what I'm doing wrong or what I'm missing?
Re: QSettings unicode problem
I have the same problem.
Anyone can help us?
Re: QSettings unicode problem
I've noticed this problem, as well, on 4.7.3 SDK. Setting the codec to UTF-16LE results in no values being read properly from the file at all.
I saved my file as UTF-8 and it started working, reading in my Cyrillic strings properly, however it misread the opening brace of the first section. Putting a blank line in the file above the first section fixed that problem.
UTF-16 appears to be totally broken, though.