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

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

Thread Previous | Thread Next
From:
Andreas Koenig
Date:
October 23, 2016 07:17
Subject:
[perl #129298] Re: [PATCH] Update documentation about UTF-8
Message ID:
87eg371qn2.fsf_-_@k85.linux.bogus
>>>>> 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.

-- 
andreas

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