if the class is used in WP, use the blog's charset in xmlrpc requests that we send

git-svn-id: http://svn.automattic.com/wordpress/trunk@1310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-05-19 01:35:09 +00:00
parent d9636d1744
commit 8b28d69e79
1 changed files with 6 additions and 1 deletions

View File

@ -612,7 +612,12 @@ class xmlrpcmsg {
}
function xml_header() {
return "<?xml version=\"1.0\"?".">\n<methodCall>\n";
if function_exists('get_settings') {
$encoding = ' encoding="'.get_settings('blog_charset').'"';
} else {
$encoding = '';
}
return "<?xml version=\"1.0\"$encoding?".">\n<methodCall>\n";
}
function xml_footer() {