[cookies] Local State should be opened as utf-8

Closes #1276
This commit is contained in:
pukkandan 2021-10-22 21:58:06 +05:30
parent d183af3cc1
commit ad0090d0d2
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698
1 changed files with 1 additions and 1 deletions

View File

@ -620,7 +620,7 @@ def _get_windows_v10_key(browser_root, logger):
if path is None:
logger.error('could not find local state file')
return None
with open(path, 'r') as f:
with open(path, 'r', encoding='utf8') as f:
data = json.load(f)
try:
base64_key = data['os_crypt']['encrypted_key']