Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use utf-8 instead of GBK to fix runtime error #52

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

fwilliamhe
Copy link

No description provided.

Copy link
Contributor

@mago960806 mago960806 left a comment

Choose a reason for hiding this comment

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

To resolve the encoding issue on Windows and ensure UTF-8 compatibility, it's recommended to add the -X utf-8 flag to the Python interpreter when running your script. This flag sets the default encoding to UTF-8, overriding the platform's default encoding (e.g., GBK on Windows).
note: Hardcoding the encoding parameter, as in encoding='utf-8', may lead to issues on different platforms.

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.

2 participants