WordPress.org

Support

Support » How-To and Troubleshooting » WP2.2 by default doesn’t establish proper UTF-8 connection to the db

WP2.2 by default doesn’t establish proper UTF-8 connection to the db

  • Just upgraded to 2.2 and discovered that all my blog shows question marks instead of Latvian letters. It turns out wp-settings.php file is missing 2 lines of code. After the line 264
    do_action(‘init’);
    these 2 lines should be inserted:
    mysql_query(“SET CHARACTER SET utf8”);
    mysql_query(“SET NAMES utf8”);

    Could you please insert them in the original setup package file? MySQL 5 needs this to show proper UTF-8 encoding.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP2.2 by default doesn’t establish proper UTF-8 connection to the db’ is closed to new replies.
Skip to toolbar