# Use expected encoding for STDIN/OUT/ERR use open ':std', ':locale'; # Use UTF-8 for STDIN/OUT/ERR use open ':std', ':encoding(UTF-8)'; # Use UTF-8 for file IO use open IO => ':encoding(UTF-8)';