GaijinPunch has asked for the wisdom of the Perl Monks concerning the following question:
Below, AFAIK, is supposed to encode a utf8 string into EUC. All I'm getting is mojibake though. Am I missing something?$string = decode("euc-jp", $string);
It's a bit late, and not sure how long I'll be up. Pardon me if I don't immediately send praises for replies.$string = encode('euc-jp', $string);
use Unicode::Japanese; $string = Unicode::Japanese->new($string)->euc;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with Encode::JP
by ikegami (Patriarch) on Sep 18, 2006 at 14:57 UTC | |
by graff (Chancellor) on Sep 19, 2006 at 07:35 UTC | |
by ikegami (Patriarch) on Sep 19, 2006 at 15:38 UTC | |
|
Re: Help with Encode::JP
by graff (Chancellor) on Sep 19, 2006 at 07:50 UTC |