You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go source code is Unicode text encoded in UTF-8. (Source.)
GopherJS fails to process some unicode characters in Go code and emits JavaScript that does not print the correct characters.
I think it fails on "astral planes", or unicode characters that require more than 2 bytes using utf-8 encoding. But this is just a hypothesis from limited evidence/investigation.
Go source code is Unicode text encoded in UTF-8. (Source.)
GopherJS fails to process some unicode characters in Go code and emits JavaScript that does not print the correct characters.
I think it fails on "astral planes", or unicode characters that require more than 2 bytes using utf-8 encoding. But this is just a hypothesis from limited evidence/investigation.
Compare:
https://play.golang.org/p/M1rXP8bm6L
http://www.gopherjs.org/playground/
(You'll have to manually paste the code into GopherJS Playground. Due to the bug in GopherJS, the snippet cannot be loaded correctly.)
Thank you to @peggyl for the original report of this issue at https://gist.github.com/peggyl/72d47f6652d30a4f566a!
Relevant Reading
The text was updated successfully, but these errors were encountered: