[Tutor] converting encoded symbols from rss feed?

Wayne srilyk at gmail.com
Wed Jun 17 14:58:00 CEST 2009


On Wed, Jun 17, 2009 at 7:30 AM, Serdar Tumgoren <zstumgoren at gmail.com>wrote:

> <snip>Here are some examples of the encoded characters I'm trying to
> convert:
>
>      &amp;#150; (symbol as it appears in the original xml file)
>      &#150;          (symbol as it appears in ipython shell after
> using Universal Feed Parser)
> <snip>


I've never played around much, but &amp; is the HTML code for an &.

So if you have <html><body>&amp;#150</body></html> it will show up as &#150.

I have no clue if the latter is any type of special character or something,
though.

Upon searching for &#150 in google, I came up with this:
http://www.siber-sonic.com/mac/charsetstuff/Soniccharset.html

HTH,
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090617/4f46ec88/attachment.htm>


More information about the Tutor mailing list