Encodeメモ
use Encode qw(from_to);
from_to($str, 'utf8', 'euc-jp');
でできます。そのまま、$strが変換されます。
よくやる間違いが、
$encoded_str = from_to($str, 'utf8', 'euc-jp');
とか。
use Encode qw(from_to);
from_to($str, 'utf8', 'euc-jp');
でできます。そのまま、$strが変換されます。
よくやる間違いが、
$encoded_str = from_to($str, 'utf8', 'euc-jp');
とか。