incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CGS <cgsmcml...@gmail.com>
Subject Re: Document id with a ' in it
Date Thu, 19 Apr 2012 13:05:07 GMT
Try to replace ' with %27 in your query. E.g., your query string

Robert Walter's 20th Congress

should become

Robert%20Walter%27s%2020th%20Congress

CGS



On Thu, Apr 19, 2012 at 2:56 PM, adam bennett <abennett712@gmail.com> wrote:

> When creating a document with a ' in its id, I am able to retrieve the
> document via the REST API, but unable to view the document in futon.  The
> url I get from futon is missing everything after the '.  Should I be
> escaping the ' in the id?  I just didn't want to deal with that when saving
> or querying via REST API.
>
> The anchor ends up being:
>
> <a s%2020th%20congress'=""
> href="document.html?llamaplayer/Robert%20Walter">
>
> with an id of:
>
> Robert Walter's 20th Congress
>
> Futon 1.0.1, btw.  Any suggestions?
>
> Thanks,
> Adam Bennett
>

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