News for hackers. Stuff that matters.
Re:Lessons of JSON by function_seven on Monday April 30, 2012 @01:35PM (#3910301)
I'm still wet behind the ears when it comes to Unicode, but why can't the character just be transmitted "natively"? (Like you said, UTF-8 inside the string assuming the encoding is set to utf8) {"I'm unicode" : "←"}
Re:Lessons of JSON by pjscott on Monday April 30, 2012 @02:14PM (#3910507)
In case anybody is nervous about this, the JSON RFC declares UTF-8 to be the default encoding, and points out a simple rule for reliably detecting the Unicode encoding (and endianness) of any JSON text encoded with UTF-8, UTF-16, or UTF-32. You can stick any Unicode characters in a JSON document, unescaped, with confidence that any halfway decent parser will decode it properly.