View Single Post
Old 08-08-2014, 06:43 PM   #1418
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@WS64: AFAICT, switching to a proper json decoder would be probably faster if there's a C backend, and handle the unicode issue properly.

EDIT: Barring that, looking at one should at least give you an example of how to handle escaped unicode sequences.

EDITē: For example, dkjson's unichar function seems to handle it in a fairly concise manner.

Code:
> print(unichar(0x00e9))
é

Last edited by NiLuJe; 08-08-2014 at 07:24 PM.
NiLuJe is offline   Reply With Quote