incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: Couchdb encoding configuration
Date Thu, 26 Apr 2012 14:52:46 GMT
-d is the data mangling option. Use --data-binary or, better, -T <filename>

B.

On 26 April 2012 15:37, Paulo Carvalho <pjcarvalho@gmail.com> wrote:
> Hello,
>
> I have a json file, which I think is valid, with the following content:
>
> {"docs":[{"comm":"Taille √©oyenne pour les structures -- √Čchantillons :
> 116-121"}]}
>
> To insert it on my database, I use Curl:
>
>> curl -X PUT -d @xpto2.json http://127.0.0.1:5984/mybd/doc_id
>
>
> I get the following error on the couchDB log:
>
> "lexical error: invalid bytes in UTF8 string."
>
>
>
> I think something is wrong with the encoding configuration of coucDB.
> However, I cannot find how and where it can be solved. I am working with
> the windows version of couchDB.
>
> Could anyone help me with this issue?
>
> Thank you
>
> Best regards

Mime
View raw message