aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-11 16:13:52 -0700
committerzotlabs <mike@macgirvin.com>2016-10-11 16:13:52 -0700
commit03aacc35b39ddb1ef0cd2474a41f3f6270b270e9 (patch)
treec61cc38afdefa052c1fe57fa587aeaa77be4e231 /include/text.php
parent6706bed676a9b6e8fa5d1d6e72644f37fb59c4d0 (diff)
downloadvolse-hubzilla-03aacc35b39ddb1ef0cd2474a41f3f6270b270e9.tar.gz
volse-hubzilla-03aacc35b39ddb1ef0cd2474a41f3f6270b270e9.tar.bz2
volse-hubzilla-03aacc35b39ddb1ef0cd2474a41f3f6270b270e9.zip
start on the API re-write
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 2f89d3d98..6d5b72f49 100644
--- a/include/text.php
+++ b/include/text.php
@@ -3005,7 +3005,7 @@ function text_highlight($s,$lang) {
// echo (($xml->asXML('data.xml')) ? 'Your XML file has been generated successfully!' : 'Error generating XML file!');
function arrtoxml($root_elem,$arr) {
- $xml = new SimpleXMLElement('<' . $root_elem . '/>');
+ $xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><' . $root_elem . '></' . $root_elem . '>', null, false);
array2XML($xml,$arr);
return $xml->asXML();
}