Quantcast
Channel: Python 2.7 encoding and feedparser - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by Maksym Polshcha for Python 2.7 encoding and feedparser

Try to use feedparser package http://packages.python.org/feedparser/It deals with encodings well and supports almost all feeds formats. You will just get well-structured data.

View Article



Answer by Praveen Gollakota for Python 2.7 encoding and feedparser

If you know that your text is UTF-8, you can decode it into unicode objects before you start working with them. As soon as you read the bytes from the file, you can decode them using the decode()...

View Article

Answer by agf for Python 2.7 encoding and feedparser

You're trying to compare encoded text to unicode. Python doesn't know the encoded text is UTF-8, so it guesses it's ASCII and tries to decode it to unicode for you. The solution is to decode it...

View Article

Python 2.7 encoding and feedparser

So in short my case is this:Read data from RSS feedPrint content to the terminalAnd of course the content isn't in plain ascii, it's utf-8, so I get characters like "öäå". But when I print the text...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images