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

Re: perl, the data, and the tf8 flag

Thread Previous | Thread Next
From:
Juerd Waalboer
Date:
April 4, 2007 12:54
Subject:
Re: perl, the data, and the tf8 flag
Message ID:
20070404195341.GU31277@c4.convolution.nl
Just like all the other pack template letters, "A" does byte strings.
Whether they are latin1 encoded strings, utf8 encoded strings, or
jpeg-images, is irrelevant. The only thing that makes it different from
"a" is the padding.

I agree that calling this "ASCII" is wrong. But "latin1" is not an
improvement, and any discussion of the UTF8 flag in this context is
silly.

(The only pack template letter that doesn't do byte strings is "U". It
should probably never have been added to pack.)
-- 
korajn salutojn,

  juerd waalboer:  perl hacker  <juerd@juerd.nl>  <http://juerd.nl/sig>
  convolution:     ict solutions and consultancy <sales@convolution.nl>

Ik vertrouw stemcomputers niet.
Zie <http://www.wijvertrouwenstemcomputersniet.nl/>.

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