[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
Sat Sep 19 13:19:32 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:
--------------------------+-------------------------------------------------
Installing WP to some web hosts, there is a problem if in the php.ini the
'default_charset' directive is set to anything that is different than the
'blog_charset' WP option, garbled text can will be received.
Here is a short description how to reproduce this bug:
- Set 'default_charset' directive in php.ini to 'iso-8859-2'
- Set blog charset to UTF-8 on the WP admin page/Settings
- Open a post editor and add the folowing category: "Árvíztűrő
tükörfúrógép". You will receive the following text when the ajax response
arrives: "Ă�rvĂztĹąrĹ� tĂźkĂśrfĂşrĂłgĂŠp"
Fix:
I have put the following line to the wp-settings.php (line 570):
{{{
ini_set('default_charset',get_option('blog_charset'));
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10817>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list