Skip to content

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

Update browser_use/utils.py

Nick Sweeting8593eebf7a6a
diff --git a/browser_use/utils.py b/browser_use/utils.py
index 4597cdc81..91bf543f6 100644
--- a/browser_use/utils.py
+++ b/browser_use/utils.py
@@ -505,7 +505,7 @@ def get_browser_use_version() -> str:
if pyproject_path.exists():
import re
- with open(pyproject_path) as f:
+ with open(pyproject_path, encoding="utf-8") as f:
content = f.read()
match = re.search(r'version\s*=\s*["\']([^"\']+)["\']', content)
if match: