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

Re: Future Perl development

February 4, 2007 16:03
Re: Future Perl development
Message ID:
Gerard Goossen schreef:

> If we make \x{?..}? really insert codepoints, and not sometimes
> bytes, we need an escape sequence for bytes.

That is thinking the wrong way around, because it should only depend on
the encoding at hand. And the encoding of the source file does not have
to be equal to the encoding of the referenced data, for example a file
that is written to. So if the source file is in UTF-8 and the data is in
Latin-1, then an "Ä" will be built from multiple bytes for the source
file but be only a single byte in the data.

Affijn, Ruud

"Gewoon is een tijger." Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About