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

Enable ascii_only output to prevent utf8 mangling #277

Merged
merged 1 commit into from
Oct 10, 2017
Merged

Conversation

toddself
Copy link
Contributor

Uglify seems to have a bad time at parsing/handling UTF-8 characters, and the
ascii_only: false default is the culprit.

Switching this on causes the UTF-8 garbage to disappear!

@toddself
Copy link
Contributor Author

From the docs:

ascii_only (default false) -- escape Unicode characters in strings and regexps (affects directives with non-ascii characters becoming invalid)

Uglify seems to have a bad time at parsing/handling UTF-8 characters, and the
`ascii_only: false` default is the culprit.

Switching this on causes the UTF-8 garbage to disappear!
@toddself toddself merged commit 0c77d24 into master Oct 10, 2017
@goto-bus-stop goto-bus-stop deleted the fix-utf8 branch December 12, 2017 16:00
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