http://www.perlmonks.org?node_id=731944


in reply to Pragma to handle unicode characters

I guess
use encoding 'utf8';
does what you want. The pragma change also the PerIO layer for STDIN and STDOUT.
Boris