in reply to Help with Kakasi

is line 12 print "$jpn\n"? If so, you just have a wide character. which is quite possible since you are asking Kakasi to return utf8.

Try encoding this to some other encoding before you print. euc-jp?

print encode('euc-jp', $jpn"), "\n";

Replies are listed 'Best First'.
Re^2: Help with Kakasi
by GaijinPunch (Pilgrim) on Jul 27, 2005 at 08:08 UTC
    Well, that's probably but the problem is that $jpn holds the same string I pass to get()... in other words, it's apparently not doing anything.

    I also can't remember which module supports encode(). :/

      What is Kakasi supposed to do with a string containing all ascii characters? eh, nothing. Kakasi translates Japanese to alphabets so you can normalize them. it's not going to do anything with ascii characters

      And as gellyfish stated, you want Encode