I am programming in C using the libxml2 library, I am converting a normal xml file into valid XMLTV format but the Spanish characters are not displaying correctly.
I am aware that the xml encoding for Spanish characters should be UTF-8.
I have this line at the top of my files:
<?xml version="1.0" encoding="utf-8"?>
And I also use the libxml function:
xmlSaveFormatFileEnc( (const xmlChar *) szFilename, doc, "utf-8", 1 );
which I believe is meant to save the file in utf-8 encoding.
When importing the xmltv file to the EPG the Spanish characters are displaying as different Spanish characters (e.g. é may display as Á). I have the feeling the file is still not encoding in UTF-8 but in ISO-8859-1