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

From: Philippe Verdy <verdy_p_at_wanadoo.fr>
Date: Fri, 8 May 2015 05:12:19 +0200

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
Received on Thu May 07 2015 - 22:13:46 CDT

This archive was generated by hypermail 2.2.0 : Thu May 07 2015 - 22:13:46 CDT