couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fred Bowen <frederick.bo...@gmail.com>
Subject Re: unicode output representation
Date Wed, 15 Apr 2009 14:34:35 GMT
+1 default output utf8
+1 switchable output to ascii via Accept:

On Wed, Apr 15, 2009 at 7:53 AM, Dirkjan Ochtman <dirkjan@ochtman.nl> wrote:
> On Tue, Apr 14, 2009 at 00:39, Chris Anderson <jchris@apache.org> wrote:
>> Any thoughts on how best to do this? Should utf8 be the default, or \uXXXX?
>
> Since RFC 4627 says JSON SHALL be encoded in Unicode, and the default
> as specified in the RFC is UTF-8, I think utf8 as the default is
> better option here. Maybe it could be switchable based on Accept:
> application/json;charset=ascii in the request.

Mime
View raw message