#4666 pagure/ui/repo: use our decoding util instead of hardcoding an utf-8 decode
Merged 4 years ago by pingou. Opened 4 years ago by jlanda.
jlanda/pagure fix-non-utf-8-files  into  master

file modified
+1 -1
@@ -600,7 +600,7 @@ 

                  output_type = "binary"

              if file_content is not None:

                  output_type = "file"

-                 content = content.data.decode("utf-8")

+                 content = encoding_utils.decode(content.data)

              else:

                  output_type = "binary"

          elif not isbinary:

Pull-Request has been merged by pingou

4 years ago
Metadata