diff options
Diffstat (limited to 'src/org/json/simple/JSONValue.java')
-rw-r--r-- | src/org/json/simple/JSONValue.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/json/simple/JSONValue.java b/src/org/json/simple/JSONValue.java index 3d42315..47a1abe 100644 --- a/src/org/json/simple/JSONValue.java +++ b/src/org/json/simple/JSONValue.java | |||
@@ -300,7 +300,9 @@ public class JSONValue { | |||
300 | break; | 300 | break; |
301 | default: | 301 | default: |
302 | // Reference: http://www.unicode.org/versions/Unicode5.1.0/ | 302 | // Reference: http://www.unicode.org/versions/Unicode5.1.0/ |
303 | if (((ch >= '\u0000') && (ch <= '\u001F')) || ((ch >= '\u007F') && (ch <= '\u009F')) || ((ch >= '\u2000') && (ch <= '\u20FF'))) { | 303 | if (((ch >= '\u0000') && (ch <= '\u001F')) |
304 | || ((ch >= '\u007F') && (ch <= '\u009F')) | ||
305 | || ((ch >= '\u2000') && (ch <= '\u20FF'))) { | ||
304 | final String ss = Integer.toHexString(ch); | 306 | final String ss = Integer.toHexString(ch); |
305 | sb.append("\\u"); | 307 | sb.append("\\u"); |
306 | for (int k = 0; k < (4 - ss.length()); k++) { | 308 | for (int k = 0; k < (4 - ss.length()); k++) { |