in reply to Re^2: Changing text Encoding EUC Shift-Jis
in thread Changing text Encoding EUC Shift-Jis

... ps I got this anwser from a japanese text book.
Well, I saw use Jcode; and made the assumption(d'oh) that you've actually used it. If you've got perl 5.7 and up, you should definetly just use Encode (as reccomended in perlunicode) and use
use Encode qw/ encode decode /; my $name_coded = encode("7bit-jis", decode("euc-jp",$name));
That is assuming that $name is encoded in euc-jp, and 7bit-jis is what you actually want (as opposed to shiftjis, in which case you just put in shiftjis ).

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.