rennat/pynliner — Issue #11: fix error with non ascii 
Author: sserrano
Created: 2011-10-25 19:18:46+00:00
State: open

--- a/pynliner/__init__.py
+++ b/pynliner/__init__.py
@@ -208,7 +208,7 @@ class Pynliner(object):

Returns self.output
"""
- self.output = unicode(str(self.soup))
+ self.output = unicode(self.soup.renderContents(), 'utf-8')
return self.output

def fromURL(url, log=None):