I've been looking everywhere for a detailed explanation on how the XMLWriter() encodes its output but couldn't find it. I would like to know what encoding should the input data be in if I want an specific output encoding, for example ISO-8859-1. Should I give it the input data in the same format?
For example here:
$xw->writeElement('garantie','Garantie à vie'); *edited
$xw->endElement();
Should I do any encoding conversion on the string 'Garantie à vie' or does the XMLWriter()
convert it automatically? Should the string be in ISO-8859-1 or UTF-8?