« Return to Thread: json_to_term EEP

Re: json_to_term EEP

by David Mercer-4 :: Rate this Message:

Reply to Author | View in Thread

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:ok@...]
> Sent: Thursday, July 31, 2008 19:20
> To: dmercer@...
> 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.
>
>
>
>


_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

 « Return to Thread: json_to_term EEP