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; }
In reply to Re: JSON::XS and unicode
by philiprbrenan
in thread JSON::XS and unicode
by kimmel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |