couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Cohnen <sebastiancoh...@googlemail.com>
Subject Re: AW: Re: AW: Re: {"error":"bad_request","reason":"invalid UTF-8 JSON"}
Date Wed, 09 Dec 2009 07:58:14 GMT
maybe this is worth mentioning in the wiki under troubleshooting for windows user?

On 09.12.2009, at 04:49, Mark Hammond wrote:

> On 9/12/2009 2:04 PM, Kamyar Navidan wrote:
>> I had the same problem with cmd.exe. Seemingly it cannot emit utf-8. I
>> solved this problem by using Power Shell (win7).
> 
> It appears there is only ascii in your example.  I think you are just hitting the different
quoting rules of cmd.exe - specifically, single quotes are not special and double quotes must
be "doubled" to be quoted.  So something like:
> 
> 
> % curl -X POST http://localhost:5984/test/ -d "{""title"":""There is Nothing Left to
Lose"",""artist"":""Foo Fighters""}"
> 
> Will work.
> 
> HTH,
> 
> Mark


Mime
View raw message