Add encoding to output

This commit is contained in:
Miles Lott 2002-05-27 00:50:28 +00:00
parent d9ac13b22a
commit 2b950e3583

View File

@ -25,13 +25,12 @@
var $payload;
var $methodname;
var $params = array();
// var $debug = True;
var $debug = False;
function xmlrpcmsg($meth, $pars=0)
{
$this->methodname = $meth;
if (is_array($pars) && sizeof($pars)>0)
if(is_array($pars) && sizeof($pars)>0)
{
for($i=0; $i<sizeof($pars); $i++)
{
@ -42,7 +41,8 @@
function xml_header()
{
return '<?xml version="1.0"?>' . "\n" . '<methodCall>' . "\n";
return '<?xml version="1.0" encoding="' . $GLOBALS['xmlrpc_defencoding']
. '"?>' . "\n" . '<methodCall>' . "\n";
}
function xml_footer()