• I’ve imported my db into a new installation of 1.5 and everything is smooth except for single quote/apostrophes being displayed as question marks. I’ve searched the forums and found several related posts, but none of the solutions have worked. This is especially problematic because the question marks come up as errors when I valaidate the rss feed. Please help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter groovejuice

    (@groovejuice)

    Any takers? Please?

    I saw this when migrating from b2 to WordPress. It has to do with smart quotes being present in the original data. WP doesn’t seem to like this (it has its own built-in smart quote conversion that handles this during rendering.)

    I’m in the process of completing the migration script I’m writing for b2 to WP and will release it when its done. In the meanwhile, though, here’s the code I’m using the get rid of this issue:

    // Convert smart quotes to simple quotes
    function smartToSimpleQuotes ( $str )
    {
    $str = str_replace(‘“’, ‘\”‘, $str);
    $str = str_replace(‘”’, ‘\”‘, $str);
    $str = str_replace(‘‘’, “\'”, $str);
    $str = str_replace(‘’’, “\'”, $str);

    return $str;
    }

    (That function, run on each post, during migration.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Characters being rendered with replacements’ is closed to new replies.