develooper Front page | perl.perl5.porters | Postings from March 2007

Re: the utf8 flag (was Re: [perl #41527] decode_utf8 sets utf8 flag on plain ascii strings)

Thread Previous | Thread Next
From:
Marc Lehmann
Date:
March 30, 2007 17:13
Subject:
Re: the utf8 flag (was Re: [perl #41527] decode_utf8 sets utf8 flag on plain ascii strings)
Message ID:
20070331001250.GJ18872@schmorp.de
On Sat, Mar 31, 2007 at 12:38:19AM +0200, Juerd Waalboer <juerd@convolution.nl> wrote:
> > codepoints map to the same byte values. Except it are different byte 
> > values :)
> 
> I said "unicode encoding", but should have said "unicode codepoints".
> 
> Codepoints 0..256 in latin1 map to byte values 0..256. That makes it
> special.

Yes, and the exact same is true for unicode (both have a 1-1 mapping
between 0..255 and octets), trivially, of course, as unicode explicitly is
a superset of latin1.

-- 
                The choice of a
      -----==-     _GNU_
      ----==-- _       generation     Marc Lehmann
      ---==---(_)__  __ ____  __      pcg@goof.com
      --==---/ / _ \/ // /\ \/ /      http://schmorp.de/
      -=====/_/_//_/\_,_/ /_/\_\      XX11-RIPE

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