String must be unicode for truncation to work for non ascii characters.

svn: r13178
This commit is contained in:
Peter Landgren 2009-09-08 13:37:48 +00:00
parent 6d14ba233c
commit 4e7df6fc71

View File

@ -146,7 +146,7 @@ class HeadlineNewsGramplet(Gramplet):
if (node2.nodeName == "item"):
title = ""
link = ""
desc = ""
desc = u""
# Gather up the data:
for item_node in node2.childNodes:
#print "---> ", item_node.nodeName
@ -186,7 +186,7 @@ class HeadlineNewsGramplet(Gramplet):
def strip_html(self, text):
text = text.replace("nbsp;", " ")
retval = ""
retval = u""
last_c = None
state = "plain"
for c in text: