You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Paul Joseph Davis (JIRA)" <ji...@apache.org> on 2011/02/03 17:42:28 UTC

[jira] Closed: (COUCHDB-1057) Wrong JSON parser behavior on escaped unicode characters

     [ https://issues.apache.org/jira/browse/COUCHDB-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis closed COUCHDB-1057.
--------------------------------------

    Resolution: Won't Fix

But wikipedia says its not:

http://en.wikipedia.org/wiki/UTF-8

Specifically, \uFFFF is an invalid code point and I reject Crockford's crazy delusional world that says all strings in every language should be implemented as unsigned 16 bit integers.

> Wrong JSON parser behavior on escaped unicode characters
> --------------------------------------------------------
>
>                 Key: COUCHDB-1057
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1057
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 1.0
>         Environment: Ubuntu 10.10
> Doesn't matter
>            Reporter: Fedor Indutny
>
> Try to save following doc to couchdb:
> { "_id" : "json-test", "test": "\u0080-\uffff"}
> And then put it to the database:
> curl -X PUT -d @1.json --basic --user admin:admin -H "Content-Type: application/json" http://couchdb:5984/tadagraph/json-test
> You'll get error:
> {"error":"bad_request","reason":"invalid UTF-8 JSON"}
> jsonlint ( http://www.jsonlint.com/ ) says that it's a valid JSON

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira