Skip to content

Fix #33#34

Merged
grider-transwithai merged 1 commit intoTransWithAI:mainfrom
ayanamist:patch-1
Mar 13, 2026
Merged

Fix #33#34
grider-transwithai merged 1 commit intoTransWithAI:mainfrom
ayanamist:patch-1

Conversation

@ayanamist
Copy link
Copy Markdown
Contributor

Reconfigure stdout and stderr to use UTF-8 encoding to fix Windows GBK pipe issue.

Reconfigure stdout and stderr to use UTF-8 encoding to fix Windows GBK pipe issue.
Copilot AI review requested due to automatic review settings March 12, 2026 11:20
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a Windows-specific encoding issue (#33) where piping output through Windows terminals using GBK encoding causes errors when outputting UTF-8 characters (e.g., Chinese text or emoji).

Changes:

  • Reconfigures sys.stdout and sys.stderr to use UTF-8 encoding at the start of main() to prevent GBK encoding errors on Windows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@grider-transwithai grider-transwithai merged commit 77e7c9d into TransWithAI:main Mar 13, 2026
32 of 33 checks passed
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.

3 participants