HelloARI logo: vinyl signs and identity design home«    web design«    sign design«    photography«    blog«    contact« 

web design and wordpress development 94114
blog»
san frnacisco web design

WP fix: Strange “’” characters appearing in WordPress

0 Flares 0 Flares ×

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.

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 Email -- 0 Flares ×
This entry was posted in WordPress. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

3 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. Si
    Posted December 3, 2014 at 7:25 am | Permalink

    Life saver, thanks!

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

    Works great 🙂

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>

*
*

 

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 Email -- 0 Flares ×
© 2016
contact  |  links  |  rss