Support » Fixing WordPress » BUG – RSS shows apostrophe as ?s

Viewing 6 replies - 1 through 6 (of 6 total)
  • Checked in Feeddemon – no problem there.
    What version WP ?
    What feedreader ?
    Encodings ?

    Thread Starter Success

    (@success)

    Version 1.5

    Not feedreader.. I am showing them on non wordpress pages.

    Encoding UTF-8

    defeattheleft

    (@defeattheleft)

    I’ve noticed a similar problem. I have trouble when syndicating my Word Press RSS feed to my main website. I get a question mark instead of an apostrophe, but only in the title. The body displays correctly.It is a problem with the way wordpress codes the XML. Some parsers fix it automatically. Others, like CaRP do not. The problem is that a ‘ is encoded as &#8217 because it is a special character and screws with the syntax of the code. In the content of the RSS code the ‘ is replaced with ’ however, in the title it is not. I think, but am not sure, that it has to do with a problem in the get_the_title_rss function in the feed-functions.php file, or the filters that it applies to the title.

    If anyone out there has a solution, let me know. Until then I’ll be working on one. If I figure it out I’ll post it up here.

    I’m having the exact same problem, thats uncanny. In my RSS feed the title has the curlier apostrophe, while the description has the straight up and down one.

    I’m using magpieRSS to parse the feed, and get the question mark instead of the apostrophe as well. Any progress on this?

    @roadhead,
    and where is your blog?

    I actually fixed the problem, although it might not be the most correct/elegant solution.

    In wp-includes/feed-functions.php

    function get_the_title_rss() {
    $title = get_the_title();
    // $title = apply_filters('the_title', $title);
    $title = apply_filters('the_title_rss', $title);
    return $title;

    Commenting out that line changed the offending “right single quotation mark” (aka ’) into the straight up and down apostrophe that apparently magpie can handle no problem.

    Before I started digging in the code I was playing with the encoding, and was in for a HECK of a surprise when I changed it to UTF-16.

    Moshu – The blog itself isn’t really up yet but its located at http://www.tradersguideoftexas.com/blurb/ and to get the headlines into our main page I’m using RSS, the page that is displaying the RSS feed right now is http://www.tradersguideoftexas.com/wordpress.php

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘BUG – RSS shows apostrophe as ?s’ is closed to new replies.