Skip Menu |

This queue is for tickets about the Mail-Box CPAN distribution.

Report information
The Basics
Id: 52118
Status: resolved
Priority: 0/
Queue: Mail-Box

People
Owner: Nobody in particular
Requestors: icestar [...] inbox.ru
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.092
Fixed in: (no value)



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?
Subject: Re: [rt.cpan.org #52118] Mail::Message::Field::Address can't parse utf-8 strings
Date: Fri, 27 Nov 2009 11:48:55 +0100
To: Dmitry Bigunyak via RT <bug-Mail-Box [...] rt.cpan.org>
From: Mark Overmeer <solutions [...] overmeer.net>
* 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
considered not an error: input not valid