Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Japanese in Perl on Linux



I am using perl to send an email it works except that Japanese text come
out as question marks.

could any perl monger out there let me in on how I am doing this wrong?
------first version----------------------------------
print MAIL "不正パスワード情報";

(first version output is just question marks)
------Second version----------------------------------
$temp = MIME::Base64::encode("不正パスワード情報");
chomp($temp);
print MAIL "=?ISO-2022-JP?B?$temp?=\n";

(this one I get the string
=?ISO-2022-JP?B?Pz8/Pz8/Pz8/?=
mime encoded Japanese text as best I can tell)
-----------------------------------------------------

Thank You
-- 
David Blomberg
AIS, APS, ASE, CCNA, LCP, LCA, Linux+, LPI I, MCP, MCSA, MCSE, RHCE, Server+
Nihon Libertec
dblomber@example.com


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links