• I am having a few problems when trying to submit content which has special characters like:

    ’ ¢ € 漢字

    I would have expected these characters to get encoded into html entities but for some reason they are not. They get stored in the database at first without being changed, but through subsequent revisions they get corrupted into something like this:

    ???s a??

    The database is utf8_unicode_ci and my html charset is utf-8.

    I can’t for the life of my think what is going wrong. It seems WordPress is doing some sort of filtering and buggering up the characters. How do people write posts in non-latin charsets?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter monkeynotes

    (@monkeynotes)

    Doh. Fixed this by adding the following into wp-config.php

    define('DB_CHARSET', 'utf8');			// force utf8
    define('DB_COLLATE', 'utf8_general_ci');	// force collation

    I also used phpMyAdmin to makes sure the collation matched.

    I think I have this problem.

    And I tried what you suggested, but it hasn’t worked for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘UTF-8 character encoding problem’ is closed to new replies.