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

Re: the utf8 flag

Juerd Waalboer
March 30, 2007 17:48
Re: the utf8 flag
Message ID:
Marc Lehmann skribis 2007-03-31  2:11 (+0200):
> Juerds goal of having the UTF-X flag exposed

I urge you, strongly, to stop spreading misinformation about my supposed
goals, beliefs, and dreams. You misinterpret a lot of what I say,
including this.

I have said nor implied that the UTF-8 flag should exposed. It can be
useful to access it sometimes, but it should never be necessary.

The UTF8 flag *is* exposed, but any mention of it in Perl code is a red
flag and must be carefully considered.

To quote myself from several sources:

> (there is nothing about the UTF8 flag in perlunitut!)

> Please, unless you're hacking the internals, or debugging weirdness,
> don't think about the UTF-8 flag at all.

perluniadvice: (
> # Pretend that the UTF8 flag doesn't exist
> # Don't set the UTF8 flag manually (Encode::_utf8_on)
> # Don't remove the UTF8 flag manually (Encode::_utf8_off)
> # Don't query the UTF8 flag (Encode::is_utf8, utf8::is_utf8)
> Here you manually switch on the internal UTF8 flag. You should NEVER
> do this
korajn salutojn,

  juerd waalboer:  perl hacker  <>  <>
  convolution:     ict solutions and consultancy <>

Ik vertrouw stemcomputers niet.
Zie <>. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About