Skip to content

fix: add encoding='utf-8' to open() calls for non-English environments#7707

Open
yahyasaqban-lab wants to merge 1 commit into
microsoft:mainfrom
yahyasaqban-lab:fix/encoding-utf8-non-english
Open

fix: add encoding='utf-8' to open() calls for non-English environments#7707
yahyasaqban-lab wants to merge 1 commit into
microsoft:mainfrom
yahyasaqban-lab:fix/encoding-utf8-non-english

Conversation

@yahyasaqban-lab
Copy link
Copy Markdown

Summary

Files changed

  • magentic-one-cli/_m1.py - config file loading (2 instances)
  • autogen-studio/database/schema_manager.py - template and env.py handling (4 instances)
  • autogen-studio/web/auth/manager.py - YAML config loading (1 instance)
  • autogen-ext/experimental/.../chat_completion_client_recorder.py - session file loading (1 instance)

Test plan

  • Verify config loading works on Windows with non-English locale
  • Run existing tests for affected packages

Related to #5566

🤖 Generated with Claude Code

Fixes UnicodeDecodeError on Windows with non-English locales (e.g., cp950)
where system default encoding differs from UTF-8.

Related to microsoft#5566

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.

1 participant