Skip to content

fix: use explicit UTF-8 encoding in redirect generation script - #8073

Open
wang-invention wants to merge 1 commit into
microsoft:mainfrom
wang-invention:fix/utf8-encoding-redirects-v2
Open

fix: use explicit UTF-8 encoding in redirect generation script#8073
wang-invention wants to merge 1 commit into
microsoft:mainfrom
wang-invention:fix/utf8-encoding-redirects-v2

Conversation

@wang-invention

Copy link
Copy Markdown

Add explicit encoding='utf-8' to all file read/write operations in redirects.py to prevent UnicodeDecodeError on Windows systems with non-UTF-8 default encoding.

Fixes #7749

Why are these changes needed?

Related issue number

Checks

Add explicit encoding='utf-8' to all file read/write operations in
redirects.py to prevent UnicodeDecodeError on Windows systems with
non-UTF-8 default encoding.

Fixes microsoft#7749
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.

docs: use explicit UTF-8 encoding in redirect generation script

1 participant