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

Ensure cross-platform compatibility by using UTF-8 encoding #249

Closed
wants to merge 2 commits into from
Closed

Ensure cross-platform compatibility by using UTF-8 encoding #249

wants to merge 2 commits into from

Conversation

ReubenUKGB
Copy link

@ReubenUKGB ReubenUKGB commented Jan 18, 2024

Overview:
This pull request addresses the UnicodeEncodeError encountered on platforms such as Windows due to encoding issues when writing certain files with unsupported characters.

Changes Made:

  • Explicity use UTF-8 encoding when writing to files, preventing UnicodeEncodeError.

Why:

  • On Windows, the default encoding 'cp1252' is used and causes issues when writing to files with certain characters.
  • Using UTF-8 encoding ensures broader compatibility and resolves the encoding error.

Testing:

  • Tested on Windows to confirm the resolution of the UnicodeEncodeError.

Dependencies:
None.

Additional Notes:

@ReubenUKGB ReubenUKGB closed this Jan 20, 2024
@ReubenUKGB
Copy link
Author

Closed due to duplicate.

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