﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
20705	IXR_Server::output method doesn't honor blog_charset option	aercolino		"I've been writing an enhancement for my LoginDongle plugin, where I will use a query string param to allow an XML-RPC user to log in.

To do that, I had to subclass the wp_xmlrpc_server class with a method like the following and add a filter for wp_xmlrpc_server_class.
{{{
public function output($xml)
{
    $format = get_option('blog_charset');
    $xml = '<?xml version=""1.0"" encoding=""' . $format . '""?>'.""\n"".$xml;
    $length = strlen($xml);
    header('Connection: close');
    header('Content-Length: '.$length);
    header('Content-Type: text/xml; charset=' . $format);
    header('Date: '.date('r'));
    echo $xml;
    exit;
}
}}}
It would be nice to have that implemented in WP."	defect (bug)	closed	normal		XML-RPC	3.3.2	normal	duplicate		cappuccino.e.cornetto@…
