incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erich oliphant <erich.oliph...@gmail.com>
Subject Re: "invalid UTF-8 JSON" 400 error accessing view with 'key' parameter
Date Wed, 17 Mar 2010 14:27:26 GMT
Thanks for the additional info.   I actually ran into the quote problem
using a java client (RESTEasy) and had to use the %22



On Wed, Mar 17, 2010 at 5:08 AM, Brian Candler <B.Candler@pobox.com> wrote:

> 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.
>



-- 
Erich Oliphant

"There are, in fact, two things, science and opinion, the former begets
knowledge, the latter ignorance"
-- Hippocrates of Cos

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message