Skip to content
This repository

Accented chars support on JSONEncoder escapeString function #158

Open
wants to merge 1 commit into from

1 participant

Oscar Valdez
Oscar Valdez
ozipi commented

Alt text

Added accented chars support as stated on the bug (included fix)
#128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 01, 2011
Oscar Valdez ozipi Accented chars support on JSONEncoder escapeString function cf4f1d3
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  src/com/adobe/serialization/json/JSONEncoder.as
2  src/com/adobe/serialization/json/JSONEncoder.as
@@ -164,7 +164,7 @@ package com.adobe.serialization.json
164 164 default: // everything else
165 165
166 166 // check for a control character and escape as unicode
167   - if ( ch < ' ' )
  167 + if ( ch < ' ' || ch > '}')
168 168 {
169 169 // get the hex digit(s) of the character (either 1 or 2 digits)
170 170 var hexCode:String = ch.charCodeAt( 0 ).toString( 16 );

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.