rss feed rencode to UTF-8

Post your requests for addons here, and discuss any addons in development here, as well.
Once an addon has completed development, it will be released in the "Addon Release" forum.

Moderator: Spunkmeyer

rss feed rencode to UTF-8

Postby Zexion » Sun May 04, 2008 10:34 pm

So I started using the RSS feed by Dale (thanks for the addon btw!)

everything works great except I have many accented charaters that are not displayed correctly by some widgets unless they are actually encoded in utf-8.

I found a little script that lets me reencode the file:

#!/bin/bash
mypath="$1"
for i in "$mypath"
do
echo "Converting $i ..."
mv -i $i $i.bak
iconv -f ISO8859-1 -t UTF-8 $i.bak >$i
done


Short and sweet and it works. Would it be possible to incorporate this into the addon (or just have it run the external script at the end

./script.sh rss.xml


The end result is to have the RSS feed actually encoded in utf-8 which is how it should be for many of the new widgets out there.

Zexion
Zexion
 
Posts: 2
Joined: Sat Jan 20, 2007 3:20 am

Return to Addon Development and Requests

Who is online

Users browsing this forum: No registered users and 2 guests

cron