* Dmitry Bigunyak via RT (bug-Mail-Box@rt.cpan.org) [091127 10:20]:
Show quoted text> Fri Nov 27 05:20:41 2009: Request 52118 was acted upon.
> Transaction: Ticket created by Alien
> Queue: Mail-Box
> Subject: Mail::Message::Field::Address can't parse utf-8 strings
>
> This simple example doesn't work:
> my $to = 'Веселая Работка <dima@mailbox.ru>';
> my $to_address = Mail::Message::Field::Address->parse($to);
>
> This code works as expected:
> my $to = 'Fanny Work <dima@mailbox.ru>';
> my $to_address = Mail::Message::Field::Address->parse($to);
>
> Maybe today this is a limitation, not a bug?
Officially, headers as ASCII only. UTF-8 is not ASCII. This means
that your header is not conform the RFC, and should have used
=?utf-8?B?....?=
However, I think that I remember there are applications which use the
charset of the Content-Type to interpret the header fields as well.
That is not supported (yet).
When you want to create these encoded phrases, you can... but not via
parse().
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark@Overmeer.net solutions@overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net