From e6b3b59a40ab032ce35109744f863bd73ef5f4a7 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Mon, 30 Oct 2017 08:46:08 +0100 Subject: [PATCH] encode the cache content in utf8 --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index b060f48..6d962cf 100644 --- a/server.py +++ b/server.py @@ -248,7 +248,7 @@ class Anonymous_Github: else: content = blob.content.decode('utf-8') else: - content = current_file.decoded_content + content = current_file.decoded_content.decode('utf-8') if ".html" in current_file.name \ or ".txt" in current_file.name \ or ".log" in current_file.name \