Qt XML: Read text with öäü characters from xml



I'm working on Windows OS and I have a xml file with some text than can look like this "öäü.txt". I want to read that value as it is and store it in a QString. Whatever way I try to do it the QString always ends up being "???.txt".


This is my current way of trying to do it:



QDomElement element = node.toElement();
qDebug() << element.attribute("filename").toLatin1();


What am I missing here?


No comments:

Post a Comment