Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am facing issue in rendering some Chinese phrases in HTML format through emails.
北京香港马会会所
北京香港赛马会会所
I am using following code:
my $bytes = $input; my $sender = new Mail::Sender({ from => 'Sourav@ss.com', smtp => 'localhost', #! msg => $bytes, headers => "Date: ", on_errors => "die" }); my $mail_args = { to => 'Sourav.ss@ww.com', headers =>"date:", subject =>"DIP", multipart => "related" }; $mail_args->{charset}="UTF-8"; $mail_args->{b_charset}="UTF-8"; $mail_args->{encoding} ="BASE64"; $sender->OpenMultipart($mail_args); $sender->Part({ ctype => 'multipart/alternative'}); my $msg_part_args = { ctype => "text/html", disposition => "NONE", msg => $bytes, }; $msg_part_args->{charset}="UTF-8"; $msg_part_args->{b_charset}="UTF-8"; $msg_part_args->{encoding} ="BASE64"; $msg_part_args->{b_encoding} ="BASE64"; $sender->Part($msg_part_args); $sender->EndPart("multipart/alternative"); $sender->Close;
Please let me know how to solve the issue.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Chinese Character Issue in email thru HTML format
by zwon (Abbot) on Aug 30, 2012 at 12:36 UTC | |
by Anonymous Monk on Sep 03, 2012 at 06:05 UTC | |
by zwon (Abbot) on Sep 03, 2012 at 13:49 UTC |