incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erdem Agaoglu <erdem.agao...@gmail.com>
Subject Re: _show fails on special characters in URL
Date Mon, 22 Aug 2011 17:37:11 GMT
I was using escape() in javascript. I switched to encodeURI() and i guess i
now am getting correct values.

On Mon, Aug 22, 2011 at 7:42 PM, Jens Alfke <jens@couchbase.com> wrote:

>
> On Aug 22, 2011, at 7:45 AM, Erdem Agaoglu wrote:
>
> So while a _show like `
> http://localhost:5984/example/_design/app/_show/foo/bar` works perfectly,
> `
> http://localhost:5984/example/_design/app/_show/foo/bar?baz=%A3` fails
> with
>
> {"error":"os_process_error","reason":"{exit_status,0}"}
>
> Well, the query string in the latter URL is invalid UTF-8, so the request
> _should_ fail. But maybe with a friendlier / more relevant message.
>
> If you’re encoding non-ASCII characters in URLs, you should be using UTF-8
> encoding, not ISO-8859-1 or CP1252 or whatever it is you’re using.
>
> —Jens
>



-- 
erdem agaoglu

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