From 7366f664a8a92494511f9e3941440b75bbe0fc50 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: https://develop.svn.wordpress.org/trunk@21528 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 '';