On Thu, 22 February, 2007 9:44 pm, Christian Aistleitner wrote: > Hello, > > > Freevo: 1.7.0_rc2 > BeautifulSoup: 3.0.3 > > > when issuing "freevo imdb ..." on my utf8 system, BeautifulSoup had > troubles with determining that the pages coming from imdb.com are > actually ISO-8859-1. The problem is the initialization of BeautifulSoup is > src/util/fxdimdb.py. There something like > > soup = BeautifulSoup() soup.feed(results.read()) > > is used. This does not work for me, but > > soup = BeautifulSoup(results.read()) > > works (See attached diff).
Now that is interesting, BeautifulSoup takes the encoding from the creation of the soup instance and not from the data it reads. Thanks for this, I'll fix this is rel-1 asap. Duncan ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
