Strange Characters in Wordpress Blog Posts

3 replies
Hi everyone,

For the more technically oriented warriors I have a question:
I recently moved my website from one hosting company to another. Everything looks good except that many of the apostrophes on my blog posts turned into this: "I’ll"

Any ideas or thoughts much appreciated
#blog #characters #posts #strange #wordpress
  • Profile picture of the author espe
    [DELETED]
    {{ DiscussionBoard.errors[6038096].message }}
  • Profile picture of the author espe
    Thats because your files (php,html,htm,etc..) are using a different encoding that the one supposed to, you can either download a better editor like notepad++ to change the encoding of your files to UTF-8 or ANSI, but my guess is that you will need to convert them to UTF-8... you can also add this:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    between the <head></head> tags

    to your html or php files,
    I hope you find this helpful
    {{ DiscussionBoard.errors[6038107].message }}
    • Profile picture of the author ragdoll
      Thank you espe.
      Actually before I came back here to look I found the fix. This is what I did:
      I opened my wp-config.php file and changed this:
      define('DB_CHARSET', 'utf8′);
      define('DB_COLLATE', ");

      to this:

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

      so I just removed the utf8 bit and it works fine now.
      {{ DiscussionBoard.errors[6038122].message }}

Trending Topics