Node's Unicode Dragon
cirw.in
Node's Unicode Dragon
1–10 of 66 posts
Re: Node's Unicode Dragon
#2Re: Node's Unicode Dragon
#3Re: Node's Unicode Dragon
#4So really, they were parsing the JSON as if it were UTF-16, but really it was UCS-2. How is that an error in Node?
Re: Node's Unicode Dragon
#5Despite that being a rather interesting technical article, I am upset that my expectation of an actual Unicode depiction of a dragon was not met.
http://www.fileformat.info/info/unicode/char/1f409/index.htm
Also, since any ASCII dragon is also a valid Unicode dragon (in UTF-8, at least), the following might satisfy your needs:
Re: Node's Unicode Dragon
#6Despite that being a rather interesting technical article, I am upset that my expectation of an actual Unicode depiction of a dragon was not met.
To see this dragon, either:
1. Use Safari or Firefox on OS X. 2. Install custom fonts for Linux or Windows. 3. Install https://chrome.google.com/webstore/detail/chromoji-emoji-for... for Chrome
Re: Node's Unicode Dragon
#7> Unfortunately for us, Javascript has never been updated to support UTF-16. Instead it continues to treat strings as UCS-2. So really, they were parsing the JSON as if it were UTF-16, but really it was UCS-2. How is that an error in Node?
Re: Node's Unicode Dragon
#8Re: Node's Unicode Dragon
#9on the other hand, if the offending bytes were blindly substituted into the JSON, then it's not surprising that there were decoding issues down the line...
Re: Node's Unicode Dragon
#10> Unfortunately for us, Javascript has never been updated to support UTF-16. Instead it continues to treat strings as UCS-2. So really, they were parsing the JSON as if it were UTF-16, but really it was UCS-2. How is that an error in Node?