Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
Index: trac/util/html.py
===================================================================
--- trac/util/html.py   (revision 4120)
+++ trac/util/html.py   (working copy)
@@ -315,7 +315,7 @@
         return u''.join(self.serialize())
 
     def __str__(self):
-        return ''.join(self.serialize())
+        return unicode(self).encode('utf-8')
 
     def __add__(self, other):
         return Fragment()(self, other)