develooper Front page | perl.perl5.porters | Postings from July 2014

Re: Encode vs. JSON

Thread Previous | Thread Next
From:
David E. Wheeler
Date:
July 20, 2014 04:59
Subject:
Re: Encode vs. JSON
Message ID:
E2DD29C7-CF9E-47FC-922B-33F64C4DEAD6@justatheory.com
On Jul 18, 2014, at 12:56 AM, Aristotle Pagaltzis <pagaltzis@gmx.de> wrote:

> there is a ticket about that:
> https://rt.perl.org/Public/Bug/Display.html?id=121937

Ah, interesting. I had not run into that warning. What I ran into with Encode I now think should be changed:

    perl -MEncode -E 'say Encode::decode("UTF-8", "\xEF\xBF\xBF", Encode::FB_CROAK)' 
    utf8 "\xFFFF" does not map to Unicode at /usr/local/lib/perl5/site_perl/5.20.0/darwin-thread-multi-2level/Encode.pm line 175.

In fact it *does* map to Unicode, IIUC Corrigendum 9 correctly. I’ll file a bug with Dan.

> So that leaves the question open as it was: why does JSON.pm exhibit one
> behaviour under 5.12 and another under 5.14?

Yes, very curious.

Best,

David



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About