iso-8859-1 standard RSS feed...?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
pkcho's picture

How do I make an RSS feed encode using iso-8859-1 standard instead of utf-8?

Also, does someone know how to place the [img src] attribute from the feed description into a separate tag/attribute?

I'm trying to prepare an RSS feed for an iPhone app and they need the RSS formatted this way.

Here is a link to a current feed: http://www.scvbj.com/rss/articles/coverstory

Thank you very much.
Joe

Comments

What module do you use to output the xml?

mikeytown2's picture

I'm guessing this is a followup to http://groups.drupal.org/node/86584 so I'll guess your using view datasource

In short there are tpl files inside the /views_datasource/theme directory. This is where utf-8 gets set.
http://drupal.org/node/805902

Hey mikeytown2, Actually, I

pkcho's picture

Hey mikeytown2,

Actually, I saved your suggestion there for another time, because I found that I misunderstood the vendor who was requesting the feed.

Basically, I'm using the RSS feed generated through views (using Drupal 6.x).

If I do end up changing the text encoding from utf-8 to the iso-8859-1 standard, is there anything I need to be cautious about?

iso-8859-1 & utf-8

mikeytown2's picture

as long as your using the standard western alphabet you should be ok. Once you have a's with ~ on top and things like that I would start to worry.

Thanks for your help

pkcho's picture

Thanks for your help mikeytown2.

Okay, now for the other question. How do I change the character encoding?

According to this article (http://drupal.org/node/8408), you can't.

Not recommended, but you can

mikeytown2's picture

tpl files again
sites/all/modules/views/theme/views-view-rss.tpl.php most likely

I found the file and yes, the

pkcho's picture

I found the file and yes, the encoding is defined. I will try that.

Thanks for all your help!

Newspapers on Drupal

Group organizers

Group categories

Topics - Newspaper on Drupal

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: