|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Encoding Mail Subjectby mrguy123 (Hermit) |
| on Mar 23, 2008 at 14:34 UTC ( [id://675777]=perlquestion: print w/replies, xml ) | Need Help?? |
|
mrguy123 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I am trying to send a mail in Chinese, using Net::SMTP. All the Chinese is in UTF-8 format, so I don't need a special encoding. It's enough to add "charset=utf-8" and the body of the mail is sent correctly (example below). The problem is that although the body is sent correctly, the subject doesn't known that it is supposed to be in utf-8. If you run the code below, you should get a mail with malformed letters in the subject and perfect Chinese in the body Does anyone have any idea how I can "tell" the subject it is also under utf-8? Thanks a lot, Guy Naamati P.S. For some reason the utf-8/Chinese characters get changed when you copy paste them to VI. If you have this problem you can first copy the chars to a notepad and then to VI. "Happiness is a warm gun" --John Lennon
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||