Fallback to UTF-8 if not valid mb_internal_encoding. Props tenpura. fixes #6092

git-svn-id: http://svn.automattic.com/wordpress/trunk@7157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-04 19:25:00 +00:00
parent c2c7fa0aef
commit 6e80433a40

View File

@ -356,9 +356,7 @@ require (ABSPATH . WPINC . '/pluggable.php');
* since we want to use the mb_ functions for utf-8 strings
*/
if (function_exists('mb_internal_encoding')) {
if (get_option('blog_charset'))
mb_internal_encoding(get_option('blog_charset'));
else
if (!@mb_internal_encoding(get_option('blog_charset')))
mb_internal_encoding('UTF-8');
}