develooper Front page | perl.perl5.porters | Postings from May 2003

Tkmail UTF-8 bug s/// and UTF-8

Nick Ing-Simmons
May 10, 2003 13:12
Tkmail UTF-8 bug s/// and UTF-8
Message ID:

There was a bug report about s/// on UTF-8 data recently. It seems this may be
one of snags with encoding-aware tkmail. I just got a pile of:

Malformed UTF-8 character (unexpected non-continuation byte 0xf2, immediately
after start byte 0xfd) in substitution (s///) at
/tools/perls/lib/5.8.0/Mail/ line 109.

That line is: 

$_[0] =~ s/\s*[\r\n]+\s*/ /og; # Compress any white space around a newline

The UTF-8 in question is coming from Encoding::???? decode,
so should be okay. I have saved the raw mail and will try and track 
it down...

Nick Ing-Simmons Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About