couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kamyar Navidan <kamya...@gmail.com>
Subject Re: Re: {"error":"bad_request","reason":"invalid UTF-8 JSON"}
Date Thu, 10 Dec 2009 08:51:01 GMT
I guess the best solution is to use msys on windows.

On Wed, Dec 9, 2009 at 1:16 PM, Brian Candler <B.Candler@pobox.com> wrote:

> On Tue, Dec 08, 2009 at 06:08:48PM +0100, Stefan Fischer wrote:
> > Hi,
> > I added the ',' to the command:
> > curl -X PUT
> > http://xxxx.xxx.xxx:5984/albums/6e1295ed6c29495e54cc05947f18c8af
> >   -d{"title":"There is Nothing Left to Lose","artist":"Foo Fighters"}'
> >
> > Still the same problem:
> > {"error":"bad_request","reason":"invalid UTF-8 JSON"}
>
> Shell quoting is a nightmare in Windows, and I don't think there's an
> equivalent to the single-quote in Unix.
>
> You could try escaping using the caret (up-arrow):
> http://thepursuitofalife.com/escape-characters-in-windows-cmdexe/
>
> I'm not sure what actually needs escaping, so to start with, escape
> everything that's remotely non-alphanumeric:
>
>    -d^{^"title^"^: ...etc... ^}
>

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