Quantcast
Viewing all articles
Browse latest Browse all 40524

Loading XML values with special character (à, é, ù, ....)

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 ?


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>