[erlang-questions] json_to_term EEP

David Mercer <>
Fri Aug 1 16:21:43 CEST 2008


Does this signal that the Erlang community is moving away from
strings-as-lists to strings-as-binaries?  Should we have an option in the
JSON functionality to return keys and values as strings-as-lists?  Should
this be the default?  Not advocating, just asking.

Cheers,

David

> -----Original Message-----
> From: Richard A. O'Keefe [mailto:]
> Sent: Thursday, July 31, 2008 19:20
> To: 
> Cc: 'Erlang Questions'
> Subject: Re: [erlang-questions] json_to_term EEP
> 
> 
> On 1 Aug 2008, at 11:16 am, David Mercer wrote:
> 
> > I notice keys and values are stored as binaries rather than lists of
> > Unicode
> > code points (Erlang "strings").  Won't this result in different keys
> > and
> > values for the same JSON object encoded in UTF-8 vs. UTF-16?
> 
> No it won't.  The EEP *specifically* says that the binaries
> will *always* use UTF-8, whatever the source or destination
> encoding.
> 
> There is a 4th draft which is sitting waiting for moderator
> approval before going out to the mailing list, because it is
> 44kB.  But this was already in the 1st draft.
> 
> 
> 
> 





More information about the erlang-questions mailing list