Forums

UTF-8 character encoding problem (3 posts)

  1. monkeynotes
    Member
    Posted 3 years ago #

    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 €

    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?

  2. monkeynotes
    Member
    Posted 3 years ago #

    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.

  3. mindwarp2000
    Member
    Posted 2 years ago #

    I think I have this problem.

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

Topic Closed

This topic has been closed to new replies.

About this Topic