incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: _show fails on special characters in URL
Date Mon, 22 Aug 2011 16:42:52 GMT

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

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