From cf4f1d337d8d47d67f77a820ba6cc0176a20c922 Mon Sep 17 00:00:00 2001 From: ozipi Date: Thu, 31 Mar 2011 21:20:44 -0600 Subject: [PATCH] Accented chars support on JSONEncoder escapeString function --- src/com/adobe/serialization/json/JSONEncoder.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/adobe/serialization/json/JSONEncoder.as b/src/com/adobe/serialization/json/JSONEncoder.as index db69494..de6a4dd 100644 --- a/src/com/adobe/serialization/json/JSONEncoder.as +++ b/src/com/adobe/serialization/json/JSONEncoder.as @@ -164,7 +164,7 @@ package com.adobe.serialization.json default: // everything else // check for a control character and escape as unicode - if ( ch < ' ' ) + if ( ch < ' ' || ch > '}') { // get the hex digit(s) of the character (either 1 or 2 digits) var hexCode:String = ch.charCodeAt( 0 ).toString( 16 );