Skip to content

fix: enforce utf-8 encoding globally to resolve #5566 - #7978

Open
wasim-builds wants to merge 1 commit into
microsoft:mainfrom
wasim-builds:fix/issue-5566-utf8-encoding
Open

fix: enforce utf-8 encoding globally to resolve #5566#7978
wasim-builds wants to merge 1 commit into
microsoft:mainfrom
wasim-builds:fix/issue-5566-utf8-encoding

Conversation

@wasim-builds

@wasim-builds wasim-builds commented Jul 19, 2026

Copy link
Copy Markdown

Closes #5566

Problem

UnicodeDecodeError / UnicodeEncodeError on non-English systems because file open calls omit encoding='utf-8'.

Fix

Enforce UTF-8 encoding on all open() calls across the codebase.

Scope

34 files updated with explicit encoding='utf-8'. Covers benchmarks, samples, autogen-ext, autogen-studio, and CLI packages.

Verification

All file I/O operations succeed on Windows (GBK/CP1252), Linux, and macOS regardless of system locale.

@wasim-builds

Copy link
Copy Markdown
Author

@wasim-builds please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant