Bugs item #2795247, was opened at 2009-05-22 09:34 Message generated for change (Tracker Item Submitted) made by luccat You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=2795247&group_id=51305
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: wxJSON Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Luciano Cattani (luccat) Assigned to: Nobody/Anonymous (nobody) Summary: [wxJSON v1.0] bug in the escaping of control characters Initial Comment: Hi, after analizing the JSON specifications (see http://www.json.org) it seems that there is another bug in the wxJSONWriter class. The JSON syntax states that a string value contains "any UNICODE character except " or \ or control character". Those characters have to be escaped and some control characters are identified by a lower case letter as, for example, TAB si identified by a lower case letter 't'. All other characters should be identified by the '\uXXXX' sequence where XXXX is a four-digit hexadecimal number. Actually, wxJSON only checks for identified control characters and does nothing for all others. Do you agree with my interpretation? All characters lower than decimal 32 (0x20 hex) should be escaped? Luciano ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=2795247&group_id=51305 ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users