[Qt-interest] QSettings Unicode Problem

Mathias Giza mgiza at gmx.de
Wed Oct 21 14:10:22 CEST 2009


Hallo,

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:

Qt Code:

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?

Greetings,

Mathias



More information about the Qt-interest-old mailing list