Re: join("") somehow changes characters after "z"

Re: join("") somehow changes characters after "z"

am 10.10.2007 22:48:46 von rvtol+news

Paul Lalli schreef:

> $ perl -le'print map { chr($_) } grep { (chr($_) =~ /\p{IsAlpha}/) }
> (1..256);'

Did you mean 1..256, or 0..255?

Once you add a chr(256) to a (non-utf8) string, the whole string just
gets updated to utf8. That's all.

--
Affijn, Ruud

"Gewoon is een tijger."