Ways to detect that XXXX in JSON \uXXXX does not correspond to a Unicode character?

Philippe Verdy verdy_p at wanadoo.fr
Thu May 7 22:12:19 CDT 2015


2015-05-08 5:08 GMT+02:00 Philippe Verdy <verdy_p at wanadoo.fr>:

> Try by yourself, you can perfectly send JSON text containing '\uFFFF'
> (non-character) or '\uF800' (unpaired surrogate) and I've not seen any JSON
> implementation complaining about one or the other, when receiving the JSON
> stream and using it in Javascript, you'll see no missing code unit or
> replaced code units and no exception as well.
>

typo : replace F800 by D800 of course
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://unicode.org/pipermail/unicode/attachments/20150508/71221f7e/attachment.html>


More information about the Unicode mailing list