mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-26 02:47:47 +02:00
encode the cache content in utf8
This commit is contained in:
@@ -248,7 +248,7 @@ class Anonymous_Github:
|
|||||||
else:
|
else:
|
||||||
content = blob.content.decode('utf-8')
|
content = blob.content.decode('utf-8')
|
||||||
else:
|
else:
|
||||||
content = current_file.decoded_content
|
content = current_file.decoded_content.decode('utf-8')
|
||||||
if ".html" in current_file.name \
|
if ".html" in current_file.name \
|
||||||
or ".txt" in current_file.name \
|
or ".txt" in current_file.name \
|
||||||
or ".log" in current_file.name \
|
or ".log" in current_file.name \
|
||||||
|
|||||||
Reference in New Issue
Block a user