utf-8 can be broken on many layers, I just tried in WEbIDE with czech letters. print(E.toArrayBuffer("ěščřýá"));
typing this directly in left side console produce '?' and it really stores characters ?
>print(E.toArrayBuffer("?????ýá"))
new Uint8Array([63, 63, 63, 63, 63, 253, 225]).buffer
putting this to right side editor and uploading is better and produces this, also when typing cursor up it can be sen it is sent via \u unicode encoding
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.
utf-8 can be broken on many layers, I just tried in WEbIDE with czech letters.
print(E.toArrayBuffer("ěščřýá"));
typing this directly in left side console produce '?' and it really stores characters ?
putting this to right side editor and uploading is better and produces this, also when typing cursor up it can be sen it is sent via \u unicode encoding
so now this looks like utf-8 encoded except last two letters ýá which are more common and not specific to czech, correct encoding is maybe prined here https://mothereff.in/utf-8#%C4%9B%C5%A1%C4%8D%C5%99%C3%BD%C3%A1
so most probably it is broken already when uploading the source code.
however when now tried to upload this
print(E.toArrayBuffer("őýá"));
theő
looks utf-8 encodedso maybe 'correct' letters in that web page show because they are not utf-8 encoded and are actually also not shown as utf-8