This is a constant source of frustration for me. Basically Espruino doesn't directly support unicode since it only has 8 bit characters, so to do anything non-ASCII the IDE replaces anything outside the 0-127 character code range with the escaped utf-8 equivalents before uploading - it's a bit of a hack.
But I just tried it, and it was broken (it's caused problems ever since it was added to the IDE in 2015!). I've just fixed it and the changes will be in the next IDE release.
Although even with that doesn't seem to be interpreted correctly by the IDE's terminal. You may have more luck when it's in a webpage, but the foolproof method would be to use the HTML escape codes for the characters you want.
... although when it is working, you will need to change Content-Type to text/html; charset=UTF-8 to get anything useful I think.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
This is a constant source of frustration for me. Basically Espruino doesn't directly support unicode since it only has 8 bit characters, so to do anything non-ASCII the IDE replaces anything outside the 0-127 character code range with the escaped utf-8 equivalents before uploading - it's a bit of a hack.
But I just tried it, and it was broken (it's caused problems ever since it was added to the IDE in 2015!). I've just fixed it and the changes will be in the next IDE release.
Although even with that doesn't seem to be interpreted correctly by the IDE's terminal. You may have more luck when it's in a webpage, but the foolproof method would be to use the HTML escape codes for the characters you want.
... although when it is working, you will need to change
Content-Type
totext/html; charset=UTF-8
to get anything useful I think.