php - Warning: SimpleXMLElement::asXML(): output conversion failed due to conv error, bytes 0xF8 0x72 0x72 0x65 -


I get the error that I wrote in the headline.

The error line is called

  $ property-> AsXML ("$ filename.xml"); Despite this, I use this string to initialize the object  
  $ properties = new SimpleXMLElement ('& gt; Xml version = "1.0" encoding = "UTF-8" standalone = "yes"? & Gt; & lt; Properties / & gt; ');  

Then it outputs:

   

Why does this encoding tag change?


Comments