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 '';