##
$char_string = decode("euc-jp", $jp_bytes);
$utf8_bytes = encode("utf8", $char_string);
####
$utf8_bytes = encode("utf8", decode("euc-jp", $jp_bytes));
####
$utf8_bytes = from_to($jp_bytes, "euc-jp", "utf8");
####
$char_string = decode("euc-jp", $jp_bytes);
binmode FH, ":encoding(euc-jp)";
print FH $char_string;