Voting

: three minus one?
(Example: nine)

The Note You're Voting On

jeff at creabilis dot com
15 years ago
If you want to set the charset of the outputed xml, simply set the encoding attribute like this :

<?php simplexml_load_string('<?xml version="1.0" encoding="utf-8"?><xml/>'); ?>

The generated xml outputed by $xml->asXML will containt accentuated characters like 'é' instead of &#xE9;.

Hope this help

<< Back to user notes page

To Top