diff --git a/util/html.py b/util/html.py index 25cf8f2..a8d9e4e 100644 --- a/util/html.py +++ b/util/html.py @@ -115,4 +115,6 @@ def extractFirstPart(value): else: text = stripAll(value) part = sentencePattern.split(text)[0] + if isinstance(part, unicode): + part = part.encode('UTF-8') return ('

%s

' % part).decode('utf8')