Hy there,
I'm trying to load values from xml file with some accents.
I'm using this code :
string title, enTete;
if (XML.load("settings.xml")) {
XML.setTo("account");
title = XML.getValue("title", "default title text");
enTete = XML.getValue("entete", "default enTete text");
cout << "values loaded" << endl;
}
cout << title << " " << enTete << endl;
where XML is a ofXml
with this XML file settings.xml.zip (667 Bytes)
I've tried it with windows, mac, OF 0.8.4, OF 0.9. None of this configurations are working.
Is it a limitation of OF or of the XML standard ?
Do you know a way to load string with special characters in OF ?