Skip to content

fix: ensure utf-8 encoding is used in all relevant open() calls#7198

Open
jackjin1997 wants to merge 4 commits intomicrosoft:mainfrom
jackjin1997:fix/utf8-encoding-global
Open

fix: ensure utf-8 encoding is used in all relevant open() calls#7198
jackjin1997 wants to merge 4 commits intomicrosoft:mainfrom
jackjin1997:fix/utf8-encoding-global

Conversation

@jackjin1997
Copy link

This PR addresses potential UnicodeDecodeError in non-English environments (e.g., Windows with different code pages) by ensuring that encoding='utf-8' is explicitly specified in all relevant open() calls.

While the specific issue in playwright_controller.py mentioned in #5566 appears to be fixed in the latest version, this PR proactively fixes similar patterns in:

  • magentic-one-cli
  • autogen-ext (experimental memory recorder and docker jupyter executor)

These changes ensure consistent behavior across different platforms and locales.

Fixes #5566

@jackjin1997
Copy link
Author

@microsoft-github-policy-service agree

@jackjin1997 jackjin1997 force-pushed the fix/utf8-encoding-global branch from 7c891a0 to 3b0732f Compare February 1, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

open needs encoding='utf-8' for non-english environment, error in playwright_controller.py

1 participant