Skip to content

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()

@tygoee
Copy link
Author

tygoee commented Jan 7, 2026

Closed as this is now supported with -i by writing files with mode wb

@tygoee tygoee closed this Jan 7, 2026
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