-
Notifications
You must be signed in to change notification settings - Fork 2k
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
script type=text/coffeescript tag does not support unicode (utf-8) properly #4263
Comments
I guess this lists solutions on how to make btoa deal with utf-8: |
As by these suggestions, replacing
with
seems to fix the problem for now. More work is needed for determining the implications of this. (I for one don't even know why this encoding to base64 is needed). Interestingly, the parser does not generally have a problem with utf-8 (that would have been noticed earlier I guess). The following works as expected:
It might be also of interest that the error in the OP appears even when only comments contain non-ascii characters. |
I have similar error: throws me into error: If there will be: How to solve this? |
And all worked. So as for not-optimized and compressed sources, I think the problem is here: Thanks to author of the topic for pointing me to the place of problem - strange item "btoa" =) |
Running this html file, saved with utf-8 encoding (no BOM) in Chrome:
generates
The error is generated on the lines saying
in coffee-script.js
The javascript tag has no problems with this string.
The text was updated successfully, but these errors were encountered: