December 2011 Archives

How should a JSON parser handle character strings?

How should a JSON parser handle character strings with non-ASCII characters? My humble opinion: fatal error. Here's what the JSON parsers on my machine did:

http://pastebin.com/mwui3iDy

About Peter Sergeant

user-pic I blog about Perl.