logoalt Hacker News

sigwinchtoday at 12:37 AM1 replyview on HN

There's a movement to write JSON to fd 3, as a machine-parsable alternative to rickety fd 1.


Replies

mjevanstoday at 3:59 AM

Anything that is infected by UCS-2 / UTF-16 garbage should be revised and reconsidered... Yeah UTF-8 has carve outs for those escape sequences... However JSON is even worse, you _have_ to use UTF-16 escapes. https://en.wikipedia.org/wiki/JSON#Character_encoding