in reply to unicode strings without decoding or warnings or corruption
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unicode strings without decoding or warnings or corruption
by Corion (Patriarch) on May 13, 2012 at 11:30 UTC | |
by Anonymous Monk on May 13, 2012 at 11:46 UTC | |
by Khen1950fx (Canon) on May 13, 2012 at 20:49 UTC | |
by Anonymous Monk on May 14, 2012 at 04:39 UTC |