couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: "invalid UTF-8 JSON" 400 error accessing view with 'key' parameter
Date Wed, 17 Mar 2010 09:08:52 GMT
On Tue, Mar 16, 2010 at 08:49:01PM -0400, erich oliphant wrote:
> Thanks worked like a charm!

And for future reference, certain characters must be escaped in URIs into
percent hex form. These are (see RFC 3986)

      gen-delims  = ":" / "/" / "?" / "#" / "[" / "]" / "@"

      sub-delims  = "!" / "$" / "&" / "'" / "(" / ")"
                  / "*" / "+" / "," / ";" / "="

You should also encode space (%20), as most HTTP implementations require
this, including couchdb.

It's optional whether you encode double quotes to %22, but that would be an
alternative way of solving your shell quoting problem.

Regards,

Brian.

Mime
View raw message