#2905: UnicodeDecodeError
---------------------------------------------+------------------------------
 Reporter:  anonymous                        |        Owner:  cmlenz  
     Type:  defect                           |       Status:  reopened
 Priority:  high                             |    Milestone:  0.10    
Component:  general                          |      Version:  devel   
 Severity:  normal                           |   Resolution:          
 Keywords:  UnicodeDecodeError unicode utf8  |  
---------------------------------------------+------------------------------
Comment (by athomas):

 I think this should also be applied to `util.markup.Fragment`:

 {{{
 #!diff
 Index: trac/util/markup.py
 ===================================================================
 --- trac/util/markup.py (revision 3087)
 +++ trac/util/markup.py (working copy)
 @@ -317,7 +324,7 @@
                  yield escape(child, quotes=False)

      def __str__(self):
 -        return Markup(''.join(self.serialize()))
 +        return Markup(''.join(self.serialize())).encode('utf-8')

      def __add__(self, other):
          return Fragment()[self, other]
 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2905>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to