mgiza
15th October 2009, 14:25
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:
QSettings settings("test.ini", QSettings::IniFormat);
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?
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:
QSettings settings("test.ini", QSettings::IniFormat);
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?