Re: how can I change the encoding of the email subject?



On 4月5日, 上午12时32分, pa...@xxxxxxxxxxxxx (Jeff Pang) wrote:
use MIME::Words qw/:all/;

for example,

$subject = encode_mimeword($subject,'b','gb2312');

On Fri, Apr 4, 2008 at 9:38 PM, kun niu <haoniu...@xxxxxxxxx> wrote:
Dear all,

I'm trying to send email with perl in my application.
The email is encoded with utf8.
The content of the email is good.
But the subject of the email is wrongly shown.
I use MIME::Lite package.
So how can I use utf8 encoding in the subject of my email?
Thanks for any help.

--
To unsubscribe, e-mail: beginners-unsubscr...@xxxxxxxx
For additional commands, e-mail: beginners-h...@xxxxxxxx
http://learn.perl.org/

Thank you for your advice.
This is what I'm after.

.



Relevant Pages

  • utf8 Problems
    ... I converted to utf8 in the hope that my non ASCII character problems ... I used utf8migrationtool and locale now says: ... Is there a package which is responsible for all these problems so I ... Pin: release a=testing ...
    (Debian-User)
  • Re: unicode failure with inputenc package
    ... According to a search in this forum, this package is supposed to be ... utf8 compliant. ... documentation for inputenc (my local disk installation ... inputenc can declare any unicode char, but as default it sets up only ...
    (comp.text.tex)
  • Re: unicode failure with inputenc package
    ... According to a search in this forum, this package is supposed to be ... utf8 compliant. ... documentation for inputenc (my local disk installation ... ibm cp encodings amongst others). ...
    (comp.text.tex)
  • Re: Encoding remarks
    ... package, ... But utf8x is extended. ... If utf8 is sufficient for you, no problem, but ... I don't actually know how much it extends utf8. ...
    (comp.text.tex)
  • Kodierung Umlaute
    ... See the inputenc package documentation for explanation. ... Der Fehler wird mir aus der bbl-Datei geworfen. ... lange Zeit vorher einen Autor mit ß im Namen der Bibliographie ... dass ich UTF8 benötige? ...
    (de.comp.text.tex)