7 ms·
I'm assuming UTF-8, so the characters I'm looking for should match up fine (\u escape sequences are also converted to UTF-8 for output).
by udp 15y ago
I'm assuming UTF-8, so the characters I'm looking for should match up fine (\u escape sequences are also converted to UTF-8 for output).
- justincormack 15y ago\u is utf16 so you should be able to append two characters to get something in the extended unicode set outside ucs16. You dont seem to handle this; not sure how many parsers do. Also not sure you handle the case where the json invalidly terminates in the middle of a \u sequence. Just from a quick glance though, may be wrong.