From 4f73b7d32989104b94caee9e6d7e2f59a98de844 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Thu, 25 Nov 2021 15:33:12 +0000 Subject: [PATCH] Update UriDeep.py Fix error: `UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 7: character maps to ` --- UriDeep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UriDeep.py b/UriDeep.py index 1a0a258..a4573d1 100644 --- a/UriDeep.py +++ b/UriDeep.py @@ -115,7 +115,7 @@ def read_domain(domain): def read_confusables(filename): lines, confusables = [], {} - with open(filename, 'r') as f: + with open(filename, 'r', encoding='utf-8') as f: lines = f.readlines() for line in lines: characters = list(line.replace('\n', ''))