Skip to content

Support files with utf-8 characters #127

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

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

Conversation

tygoee
Copy link

@tygoee tygoee commented May 29, 2025

Files containing utf-8 would not minify with the error:

UnicodeEncodeError: 'charmap' codec can't encode character '\u...' in position ...: character maps to

This commit adds encoding=utf8 to open()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant