Octavian Râsnita wrote:
From: "Gunnar Hjalmarsson" <nore...@gunnar.cc>
Octavian Râsnita wrote:
I have tried to use the same code but I've changed the charset to
UTF-8 (also tried utf8) and the subject to:
subject => 'Östra Vägen astâîASTÂÎ',
If you change the charset to UTF-8, you'd better also pass UTF-8
encoded strings to the module. That's not a UTF-8 string.
If I used it in a UTF-8 encoded perl program and was also using "use
utf8;" in it, I expected that it understand that it should be encoded to
UTF-8.
I don't think that's what the utf8 pragma is about. (But, as I'm sure
you understand, my UTF-8 knowledge is limited.)
perldoc utf8
As far as I know, Mail::Sender does not encode the headers, but I
wouldn't call that a bug. It just means that unless the subject line
is ISO-8859-1 (or ASCII), you need to encode it using quoted-printable
or base64.
Well, instead of the old type encoding of ISO-8859-1, it would have been
much better if it would encode to UTF-8 and also do the MIME encoding.
AFAIK, no mail sending module automatically *encodes to UTF-8*. But I
agree that MIME encoding of certain headers would have been nice.
... Mail::Builder::Simple is still not very useful
to me, since it only permits UTF-8 encoded strings.
Yes I know this, but since any char from any language can be found in
the UTF-8 encoding, I don't think this is such a big issue... unless you
need to modify an old code.
There is - and will be in the foreseeable future - quite a lot of text
in this world that is not UTF-8 encoded. ;-)
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/