couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <d...@muse.net.nz>
Subject Re: Couchdb encoding configuration
Date Thu, 26 Apr 2012 18:40:13 GMT
> On Thu, Apr 26, 2012 at 4:37 PM, 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"}]}

Prior to transferring to couch, can one validate this?

- as utf-8
- as json

Given a file utf8wtf.json, how about:

iconv -f UTF-8 utf8wtf.json

or with perl installed I can use this and check json as well:

json_xs -t null -v < utf8wtf.json

Any other ideas that might be more cross platform?

A+
Dave

Mime
View raw message