A feature-rich command-line audio/video downloader
[cookies] Local State should be opened as utf-8 Closes #1276
pukkandanad0090d0d23e
diff --git a/yt_dlp/cookies.py b/yt_dlp/cookies.pyindex 5f7fdf5843..c9ae9b6dbe 100644--- a/yt_dlp/cookies.py+++ b/yt_dlp/cookies.py@@ -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']