develooper Front page | perl.perl5.porters | Postings from December 2004

Re: Overlong UTF-8 (Re: Make Encode.pm support the real UTF-8)

Thread Previous | Thread Next
From:
Gisle Aas
Date:
December 3, 2004 04:06
Subject:
Re: Overlong UTF-8 (Re: Make Encode.pm support the real UTF-8)
Message ID:
lrvfbjegch.fsf@caliper.activestate.com
Gisle Aas <gisle@ActiveState.com> writes:

> $ perl xxx.pl | perl xxx.pl encoding
> Hi
> utf8 "\xF0" does not map to Unicode at xxx.pl line 10.
> utf8 "\x80" does not map to Unicode at xxx.pl line 10.
> utf8 "\x80" does not map to Unicode at xxx.pl line 10.
> utf8 "\x80" does not map to Unicode at xxx.pl line 10.
> $VAR1 = 'foo\\xF0\\x80\\x80\\x80bar
> ';
> 
> Was this an intentional change?

When using ':encoding(utf8)' all data after a bad byte is simply lost.
This seems like a serious perl-5.8.6 recession to me.

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