summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2010-08-02 23:57:47 +0200
committerFlorian Frank <flori@ping.de>2010-08-02 23:57:47 +0200
commit52568affd822db6f1bad8a8c2cadcecebeb5e611 (patch)
tree05af99e875e612228af702288ae264fbf4a0d5a1
parent4795cd746464f96cd15300ccb928d06812076787 (diff)
downloadjson-52568affd822db6f1bad8a8c2cadcecebeb5e611.tar.gz
we use UTF-8 output as a default now
description fixed
-rw-r--r--index.html12
1 files changed, 5 insertions, 7 deletions
diff --git a/index.html b/index.html
index fda5fd4..cb41511 100644
--- a/index.html
+++ b/index.html
@@ -49,13 +49,11 @@ will be two variants available:
State Machine Compiler</a>.</li>
</ul>
<p>
-Both variants of the JSON generator escape all non-ASCII an control
-characters with \uXXXX escape sequences, and support UTF-16 surrogate pairs
-in order to be able to generate the whole range of unicode code points. This
-means that generated JSON text is encoded as UTF-8 (because ASCII is a subset
-of UTF-8) and at the same time avoids decoding problems for receiving
-endpoints, that don't expect UTF-8 encoded texts. On the negative side this
-may lead to a bit longer strings than necessarry.
+Both variants of the JSON generator generate UTF-8 character sequences by default.
+If an :ascii_only option with a true value is given, they escape all non-ASCII
+and control characters with \uXXXX escape sequences, and support UTF-16
+surrogate pairs in order to be able to generate the whole range of unicode code
+points.
</p>
<p>
It's also easy to extend JSON data types for arbitrary Ruby classes (including