in reply to Converting from UTF8->EUC-JP
from_to is not exported by default. it also encode/decodes strings *in-place*.
use Encode qw(from_to); from_to($word, 'utf8', 'euc-jp');
On your second case, it depends. most likely cause is that $word isn't decoded into Perl's utf8 representation. You'd need to show more specific examples
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting from UTF8->EUC-JP
by GaijinPunch (Pilgrim) on Jul 04, 2005 at 05:01 UTC |