Ready to get started?Download WordPress


Special characters not displaying correctly in UTF-8 (3 posts)

  1. frivolio
    Posted 3 years ago #

    Hi Everybody!

    On my blog UTF-8 works great on posts and comments. However I have a function/form which registers some info directly in WordPress as posts. Unfortunately the special characters like these: é, ë, ï are not saved as UTF-8 in database but something like this: é, ë, ï

    I found on this forum the wp-db.php hack (http://wordpress.org/support/topic/japanese-characters-not-displaying-right?replies=4) but this not apply anymore on WordPress 3.0.

    I want to know how I can integrate

    $this->query ("SET NAMES 'utf8'");

    into my query function:

    $postsql = "insert into $wpdb->posts (blah blah)";

    Anybody can help me with that?

  2. frivolio
    Posted 3 years ago #

    this seems not to work:

    $wpdb->query($postsql, "SET NAMES 'utf8'");
  3. Baden
    Posted 2 years ago #

    I am having the exact same issue. Any solutions?

Topic Closed

This topic has been closed to new replies.

About this Topic