Re: Bug in Encode::encode('MIME-Q', $iso_8859_1_string)

[email protected] (John Delacour)
Newsgroups perl.unicode
Message-ID <p06230920bfcc9715432b@[10.0.0.1]>
At 3:54 pm +0100 23/11/05, Sven Neuhaus wrote:

>this seems to be a bug:
>
>b)
>perl -MHTML::Entities -MEncode -e '$a="abc&Auml";
>print encode("MIME-Q", HTML::Entities::decode($a)), "\n";'
>
>Result:
>=?UTF-8?Q?abc=C4def?=


What about this:

      perl -MHTML::Entities -MEncode -e 'use encoding ("iso-8859-1");
      $a = "abc&Auml"; print encode "MIME-Q", decode_entities $a . $/'

      =?UTF-8?Q?abc=C3=84?=


>PS: I'm using perl 5.8.7

Me too, in Mac 10.4.3

JD
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.