Skip to content

Enable ascii_only output to prevent utf8 mangling#277

Merged
toddself merged 1 commit intomasterfrom
fix-utf8
Oct 10, 2017
Merged

Enable ascii_only output to prevent utf8 mangling#277
toddself merged 1 commit intomasterfrom
fix-utf8

Conversation

@toddself
Copy link
Copy Markdown
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
Copy Markdown
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