Ah! I understand. As far as I know, escaping the special chars in the name of the doc won't help. I might be wrong though (there is some time since I've met such a problem - in the end I gave up and I used encoded doc names).
CGS On Thu, Apr 19, 2012 at 3:39 PM, adam bennett <[email protected]> wrote: > I don't have a problem with my client application. I'm already encoding > the '. The problem is with futon and the link that is generated. There's > a workaround: fixing the url in the browser after futon throws the alert() > saying there is no document matching the id. > > <a s%2020th%20congress'="" > href="document.html?llamaplayer/Robert%20Walter"> > > I guess I can find the code and read through. I'll have something to do on > my flight home tomorrow now > > On Thu, Apr 19, 2012 at 8:05 AM, CGS <[email protected]> wrote: > > > 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 <[email protected]> > > 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 > > > > > >
