develooper Front page | perl.perl5.porters | Postings from October 2016

Re: [perl #129298] Re: [PATCH] Update documentation about UTF-8

Thread Previous
From:
pali
Date:
October 23, 2016 09:20
Subject:
Re: [perl #129298] Re: [PATCH] Update documentation about UTF-8
Message ID:
201610231114.12183@pali
On Sunday 23 October 2016 09:16:49 Andreas Koenig wrote:
> >>>>> On Sat, 22 Oct 2016 12:13:41 +0200, pali@cpan.org said:
>  >      my $unicode = chr(0x100);
>  >      print length($unicode), "\n"; # will print 1
>  > 
>  > -    require Encode;
>  > -    print length(Encode::encode_utf8($unicode)),"\n"; # will
>  > print 2
>  > 
>  >      use bytes;
>  >      print length($unicode), "\n"; # will also print 2
>  >      
>  >                                    # (the 0xC4 0x80 of the UTF-8)
> 
> Now the "also" in line 6 has lost the point of reference.

Alright! Anything else?

Thread Previous


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