Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix: add utf-8 encoding to Local State file read in list_chrome_profiles

voidborne-d4c2d136de9d2
diff --git a/browser_use/skill_cli/utils.py b/browser_use/skill_cli/utils.py
index 0cdcab0a1..1de93ca75 100644
--- a/browser_use/skill_cli/utils.py
+++ b/browser_use/skill_cli/utils.py
@@ -281,7 +281,7 @@ def list_chrome_profiles() -> list[dict[str, str]]:
return []
try:
- with open(local_state_path) as f:
+ with open(local_state_path, encoding='utf-8') as f:
local_state = json.load(f)
info_cache = local_state.get('profile', {}).get('info_cache', {})