Forums

BUG - RSS shows apostrophe as ?s (7 posts)

  1. Success
    Member
    Posted 4 years ago #

    BUG - RSS shows apostrophe as ?s

  2. podz
    Support Maven
    Posted 4 years ago #

    Checked in Feeddemon - no problem there.
    What version WP ?
    What feedreader ?
    Encodings ?

  3. Success
    Member
    Posted 4 years ago #

    Version 1.5

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

    Encoding UTF-8

  4. Defeattheleft
    Member
    Posted 3 years ago #

    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.

  5. roadhead
    Member
    Posted 3 years ago #

    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?

  6. moshu
    Member
    Posted 3 years ago #

    @roadhead,
    and where is your blog?

  7. roadhead
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.