use open IN => ':encoding(UTF-8)'; use open OUT => ':encoding(iso-8859-1)';