[wp-trac] [WordPress Trac] #10817: Some character coding error occur if 'default_charset' is set in php.ini
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 11 16:01:01 UTC 2009
#10817: Some character coding error occur if 'default_charset' is set in php.ini
--------------------------+-------------------------------------------------
Reporter: nyuwec | Owner: hakre
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8.5
Component: Charset | Version: 2.8.4
Severity: major | Keywords: reporter-feedback
--------------------------+-------------------------------------------------
Comment(by nyuwec):
Sorry for the late response:
- This bug affects only the ajax responses.
- Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2
PHP/5.2.8 (default_charset: iso-8859-1)
Here is the request header when an ajax-save (admin-ajax.php) occurs in
the post editor:
{{{
Host localhost
User-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Accept */*
Accept-Language hu,en-us;q=0.7,en;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-2,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Content-Type application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With XMLHttpRequest
Referer http://localhost/~kolesmihaly/test/wordpress/wp-
admin/post.php?action=edit&post=1
Content-Length 284
Cookie
wordpress_139eba7c194a58b05d3c48dc95f1b0eb=admin%7C1255449171%7C5866f7a18ab45eeb179a57e6b10b75bd;
wordpress_test_cookie=WP+Cookie+check; wp-settings-time-1=1255276395;
wordpress_logged_in_139eba7c194a58b05d3c48dc95f1b0eb=admin%7C1255449171%7Cb7ce9df71ad39a1526060cd7f7b0dae4;
ja_tube_tpl=ja_tube
}}}
And here is the response header:
{{{
Date Sun, 11 Oct 2009 15:54:18 GMT
Server Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2 PHP/5.2.8
X-Powered-By PHP/5.2.8
Content-Length 237
Keep-Alive timeout=5, max=100
Connection Keep-Alive
Content-Type text/xml;charset=iso-8859-1
}}}
As you can see the response header content-type is set to iso-8859-1
instead of utf-8, which is the default charset of this wordpress install.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10817#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list