Answering myself again
sub fixUTFness { use Data::Visitor::Callback; my $decodeVisitor = Data::Visitor::Callback->new( ignore_return_values => 1, value => sub { utf8::decode($_); return }, ); $decodeVisitor->visit( @_ ); }
then you get stuff like print "Foo \x{2014} Bar"; and it all works
In reply to Re: unicode strings without decoding or warnings or corruption
by Anonymous Monk
in thread unicode strings without decoding or warnings or corruption
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |