in reply to Re^2: Help with Encode::JP
in thread Help with Encode::JP

Sounds to me likes he wants to do both. I assumed he could figure out that all he needs to do to go in the other direction is to replace euc-jp for utf8 and vice-versa.

$char_string = decode("utf8", $utf8_bytes); $jp_bytes = encode("euc-jp", $char_string);

or

$jp_bytes = encode("euc-jp", decode("utf8", $utf8_bytes));

or

$jp_bytes = from_to($utf8_bytes, "utf8", "euc-jp");

or

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