pombreda / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

UnicodeEncodeError with Beautiful Soup #217

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Parse attached file with console encoding ASCII and BeautifulSoup enabled.

What is the expected output? What do you see instead?
Something instead of crash.

What version of the product are you using? On what operating system?
4.2-pre, revision 311 with BeautifulSoup 3.0.8.1. Python 2.5 on Windows XP.

Please provide any additional information below.
Without BeautifulSoup feed parser works or if console supports for example 
UTF-8.

Original issue reported on code.google.com by floridan...@gmail.com on 14 Jun 2010 at 6:54

Attachments:

GoogleCodeExporter commented 9 years ago
Attached is an illformed test and a patch that will catch UnicodeEncodeErrors 
in the microformat code.

Tested across Python 2.4 through 2.7, git branch at:
https://github.com/kurtmckee/feedparser/tree/issue217

Original comment by kurtmckee on 6 Dec 2010 at 1:20

Attachments:

GoogleCodeExporter commented 9 years ago
Patch applied in revision 335

Original comment by adewale on 13 Dec 2010 at 1:26