Add encoding to return value

This commit is contained in:
Miles Lott 2002-05-27 00:40:30 +00:00
parent cdc2926ff3
commit 5cf60ba4ee

View File

@ -73,7 +73,9 @@
function service()
{
$r = $this->parseRequest();
$payload = "<?xml version=\"1.0\"?>\n" . $this->serializeDebug() . $r->serialize();
$payload = '<?xml version="1.0" encoding="' . $GLOBALS['xmlrpc_defencoding'] . '"?>' . "\n"
. $this->serializeDebug()
. $r->serialize();
Header("Content-type: text/xml\r\nContent-length: " . strlen($payload));
print $payload;
}