atelic / pagure

Forked from pagure 7 years ago
Clone

9dad14c Convert filenames with utf8 chars when outputting them in templates

4 files Authored by ryanlerch 7 years ago, Committed by pingou 7 years ago,
    Convert filenames with utf8 chars when outputting them in templates
    
    If a git repo has a filename in it with a utf8 encoded char,
    the template would previously fail to render with an error like:
    
        UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1:
    ordinal not in range(128)
    
    This adds a filter to convert the utf8 charaters in the templates.
    
    The tests have also been updated to add a file to one of the repos
    with a non-ascii char.
    
        
file modified
+4 -4
file modified
+4 -0
file modified
+3 -0