ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

RSS Feed - How Do I Keep ASCii Chars Out???

May 25, 2011 2:08pm

Subscribe [3]
  • #1 / May 25, 2011 2:08pm

    a la mode

    168 posts

    I have an RSS feed that I am struggling with for some reason. It is a simple blog feed. The blog contains two fields, an image, and a wygwam field for the content.

    I’ve tried using html_strip and xml_encode with no luck…

    Here is my RSS construct:

    {assign_variable:master_weblog_name="blog_post"}
    {exp:rss:feed weblog="{master_weblog_name}"}
        <?xml version="1.0" encoding="UTF-8"?>
        <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
            <channel>
                <title>workflowGeeks</title>
                <description>workflowGeeks Blog Feed</description>
                <link>http://www.workflowGeeks.com</link>
                <atom:link href="http://www.workflowgeeks.com/index.php/feed" rel="self" type="application/rss+xml" >
                {gmt_date format="%D, %d %M %Y %H:%i:%s CST"}</pubDate>
                {exp:weblog:entries weblog="{master_weblog_name}" limit="10" dynamic_start="on" disable="member_data|pagination"}
                    <item>
                        <title>{title}</title>
                        <description>{exp:word_limit_plus if_exceeds="140" stop_after="130"}{wb_body}{/exp:word_limit_plus}</description>
                        <link>{title_permalink='site/view'}</link>
                        <guid>{title_permalink='site/view'}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
                        {gmt_entry_date format="%D, %d %M %Y %H:%i:%s CST"}</pubDate>
                    </item>
                {/exp:weblog:entries}
            </channel>
        </rss>
    {/exp:rss:feed}

    I keep getting the following on my feed:

    <title>Big news: We’re showing DataCourier in today’s webinar</title>

    See image for error screen.

    Any help would be greatly appreciated…

  • #2 / May 25, 2011 3:54pm

    a la mode

    168 posts

    Ok… I got this fixed and it validates perfectly now with:

    {assign_variable:master_weblog_name="blog_post"}
    {exp:rss:feed weblog="{master_weblog_name}"}
    <?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:content="http://purl.org/rss/1.0/modules/content/"
        xmlns:atom="http://www.w3.org/2005/Atom">
        <channel>
            <atom:link href="http://www.workflowgeeks.com/index.php/feed" rel="self" type="application/rss+xml" >
            <title>{exp:xml_encode}workflowGeeks Blog{/exp:xml_encode}</title>
            <description>workflowGeeks Blog Feed</description>
            <link>http://www.workflowgeeks.com</link>
            <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
            <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
            <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
            {exp:weblog:entries weblog="{master_weblog_name}" limit="10" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
                <item>
                    <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
                    <link>{title_permalink=site/view}</link>
                    <guid>{title_permalink=site/view}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
                    <description>{exp:xml_encode}{wb_body}{/exp:xml_encode}</description>
                    <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
                </item>
            {/exp:weblog:entries}
        </channel>
    </rss>
    {/exp:rss:feed}

    The problem I now face has to do with the links that feedburner is providing to the site.

    The current link:

    http://www.workflowgeeks.com/index.php/site/view/big_news_were_showing_datacourier_in_todays_webinar?/utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+workflowgeeks/kKUk+(WorkflowGeeks)#When:18:39:02Z

    If I replace the red with “&” it is fine… (I am just not proficient in htaccess rewrites)

    I need:

    http://www.workflowgeeks.com/index.php/site/view/big_news_were_showing_datacourier_in_todays_webinar&utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+workflowgeeks/kKUk+(WorkflowGeeks)#When:18:39:02Z

    Any help is still greatly appreciated.

  • #3 / May 25, 2011 6:42pm

    a la mode

    168 posts

    This fixed the issue for me in regards to the Feedburner links and invalid GET data. I didn’t even realize the “(” were there until I posted the last one. % 28 was hiding…lol

    http://ellislab.com/forums/viewthread/135186/

  • #4 / May 25, 2011 8:38pm

    Sue Crocker

    26054 posts

    Hi, Brian. Sounds like you’re OK..

    Personal note: sounds like you’re OK personally too. 😊 I’m just glad our tornados didn’t do any real damage here in KC.

    OK to close?

  • #5 / May 26, 2011 12:43pm

    a la mode

    168 posts

    Sue,

    Thanks for the check. We’re all good. We were about 4 miles away from the closest one in our area. Just lots of wind, rain, and hail. Typical Oklahoma storm.  :roll:

    Glad you guys are alright as well. Been a rough season thus far.

    Good to close.  😉

  • #6 / May 26, 2011 6:59pm

    Brandon Jones

    5500 posts

    Glad everyone’s alright. Thanks Brian and don’t hesitate to post again.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases