Edgewall Software

Ticket #2337: txtl.py-unicode.patch

File txtl.py-unicode.patch, 376 bytes (added by Myroslav Opyr <myroslav@…>, 3 years ago)

Patch that corrects the bug

  • trac/mimeview/txtl.py

    old new  
    3535 
    3636    def render(self, req, mimetype, content, filename=None, rev=None): 
    3737        import textile 
    38         return textile.textile(content) 
     38        return textile.textile(content, input_encoding='utf-8', output_encoding='utf-8')