Changeset 7156

Show
Ignore:
Timestamp:
03/04/08 17:12:04 (7 months ago)
Author:
ryan
Message:

Make sure encoding is not empty. Props tenpura. see #6902

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-settings.php

    r7140 r7156  
    356356 * since we want to use the mb_ functions for utf-8 strings 
    357357 */ 
    358 if ( function_exists('mb_internal_encoding') ) 
    359     mb_internal_encoding( get_option( 'blog_charset' ) ); 
    360  
     358if (function_exists('mb_internal_encoding')) { 
     359    if (get_option('blog_charset')) 
     360        mb_internal_encoding(get_option('blog_charset')); 
     361    else 
     362        mb_internal_encoding('UTF-8'); 
     363
    361364 
    362365