in reply to JSON::XS and unicode
You are trying to write a unicode encoded character to a file but the file has not been opened with an encoding that can cope. You need something like this (untested):
{open(my $F, ">:encoding(UTF-8)", $f) or die "Cannot open $f"; say {$F} $s; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: JSON::XS and unicode
by kimmel (Scribe) on Sep 08, 2012 at 20:11 UTC | |
by chip (Curate) on Sep 08, 2012 at 21:01 UTC | |
by philiprbrenan (Monk) on Sep 09, 2012 at 11:04 UTC |
In Section
Seekers of Perl Wisdom