WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] utf-8 encoding problem (4 posts)

  1. lumilux
    Member
    Posted 4 years ago #

    Instead of single closing quotation marks (and other similar symbols), some posts show strange character strings such as ’.

    I am using W3 Total Cache, with a database collation of utf8_general_ci and a character encoding of UTF-8. The incorrect characters go away if I clear the disk cache and refresh, but they return after a little while.

    I currently have the following in my wp-config.php:

    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', 'utf8_general_ci');

    Commenting out the lines only caused more obvious encoding problems.

  2. dcannon1
    Member
    Posted 4 years ago #

    Is your database using utf8 encoding as well?

  3. lumilux
    Member
    Posted 4 years ago #

    Yes. I think I've solved it by putting this in my <head>:
    <meta charset="utf-8" />

  4. Frederick Townes
    Member
    Posted 4 years ago #

    Ok, thanks @dcannon1! @lumilux, can you mark this as resolved?

Topic Closed

This topic has been closed to new replies.

About this Topic