non vorrei lavorare

昔はおもにプログラミングやガジェット系、今は?

文字化け解消[Net::Amazon]

EUC-JPなPerlCGIなのですが

 

my $msg = Encode::encode('euc-jp', $response->message);

print $msg . "<br>"

 

だとNG

 

my $msg = $response->message();

Encode::from_to($msg, 'utf8','euc-jp');

print $msg . "<br>";

 

 

OKでした。

関連記事

4年後の記事