$char_string = decode("euc-jp", $jp_bytes); $utf8_bytes = encode("utf8", $char_string);
No, I think the OP's issue is that he's having trouble converting the utf8 encoding (as stored to and fetched from the database) back into "euc-jp", because (for example), maybe that's how the data needs to be displayed.
Converting to utf8_bytes is kind of useless in this context.
In reply to Re^2: Help with Encode::JP
by graff
in thread Help with Encode::JP
by GaijinPunch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |