HelloARI logo: vinyl signs and identity design web design«    sign design«    blog«    contact«  USE MY IMAGINATION
web design and wordpress development 94114

san frnacisco web design

WP fix: Strange “’” characters appearing in WordPress

I recently had encoding problems with apostrophes (‘), quotation marks (“) and hyphens (-) as well as double spaces. They’d be displayed as question marks or “’” or “”.

Mr Chow has an easy fix that worked perfectly.

Turns out that the fix is really simple. By default, the WordPress config files now set your character encoding to UTF-8. The solution is to open up wp-config.php file and located these lines:

define(’DB_CHARSET’, ‘utf8′);
define(’DB_COLLATE’, ”);
and either remove the “utf8″ string so the first line becomes:
define(’DB_CHARSET’,”);
define(’DB_COLLATE’, ”);

at the same time i took a moment to update the secret keys in the wp-config file with ‘salt‘ to bring that security layer up to date.

via Strange characters after WordPress upgrade | Trevin Chow.

This entry was posted in WordPress. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. Posted June 21, 2014 at 9:34 am | Permalink

    Even better change the utf8 to utf-8

    Although i have problems with some plugins

  2. Posted December 3, 2014 at 7:25 am | Permalink

    Life saver, thanks!

  3. Posted January 18, 2016 at 2:52 am | Permalink

    Works great 🙂

  4. Posted November 16, 2016 at 2:15 pm | Permalink

    it worked!
    Thank you

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*
*

© 1996 - 2024
contact  |  links  |  rss