in reply to Re^4: JSON::XS Cyrillic unicode not saving properly
in thread JSON::XS Cyrillic unicode not saving properly

After some more doc-diving, I discovered the problem is that if you use encode_json (which is equivalent to $json_text = JSON::XS->new->utf8->encode ($perl_scalar) AND set the file encoding to utf8, then text gets double-encoded. When I do this
open(OUT,">twitter-non-en.json") or die "Can't open output: $!"; #binmode OUT, ':encoding(UTF-8)'; print OUT encode_json($sample); close OUT;
The JSON contains the expected Cyrillic text. Thanks for all the input.