Fix for encoding files with different encodings.

pull/10/head
Tanaydin Sirin 2019-04-05 17:32:25 +02:00
parent 659b6a1e2c
commit d363731e80
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ result_files = 0
def analysis(path, plain):
global result_files
result_files += 1
with open(path, 'r') as content_file:
with open(path, 'r', encoding='utf-8', errors='replace') as content_file:
# Clean source for a better detection
content = content_file.read()