Well the problem was something related to SimpleXML
. I've tried everything converting the SimpleXML to CP1252, but when I was loading it in DOMDocument->loadXML
, I always got Illegal character...
errors
I've replaced it for directly using DOMDocument
class, specifying CP1252 in the constructor and inserting new records as UTF8
.
When I call DOMDOcument->Save()
, it automatically encodes the file as CP1252, avoiding the mentioned error in PostScript
.