From c1b270d95a9b39812a4e917dbbab0622fc2c2bf5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 15 Aug 2012 18:17:21 +0000 Subject: [PATCH] Specify the charset in WP_Ajax_Response::send(). Props sergey.s.betke@novgaro.ru, SergeyBiryukov. fixes #19448 git-svn-id: http://core.svn.wordpress.org/trunk@21528 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-ajax-response.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-ajax-response.php b/wp-includes/class-wp-ajax-response.php index 2bf974a265..24eb687f12 100644 --- a/wp-includes/class-wp-ajax-response.php +++ b/wp-includes/class-wp-ajax-response.php @@ -126,8 +126,8 @@ class WP_Ajax_Response { * @since 2.1.0 */ function send() { - header('Content-Type: text/xml'); - echo ""; + header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) ); + echo ""; foreach ( (array) $this->responses as $response ) echo $response; echo '';