Posted by pkcho on August 18, 2010 at 10:35pm
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?
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
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
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
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
tpl files again
sites/all/modules/views/theme/views-view-rss.tpl.php most likely
I found the file and yes, the
I found the file and yes, the encoding is defined. I will try that.
Thanks for all your help!