On Sat, May 12, 2007 at 03:58:16PM +0900, Dan Kogai wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Folks,
>
> I just released Encode 2.21.
>
> I have added a method: $enc->mime_name(). For most
cases you can
> simply use the canonical encoding name in MIME headers,
like "Content-
> Type: text/plain; charset=iso-8859-1" but that is
not the case for
> utf-8-strict and some others.
>
> You could use I18N::Charset::mime::mime_charset_name()
to fix that
> but it would be handier if Encode supports something
like $enc-
> >mime_name. Encode 2.21 does just that.
>
> my $enc = find_encoding('UTF-8);
> warn $enc->name; # utf-8-strict
> warn $enc->mime_name; # UTF-8
>
> Thanks MIYAGAWA for telling me what's wrong with
"utf-8-strict".
>
> =head1 Availability
>
> http://www.dan.co.jp/~dankogai/cpan/Encode-2.21.tar.gz
> and CPAN near you.
>
> =head1 Changes
>
> $Revision: 2.21 $ $Date: 2007/05/12 06:42:19 $
> + lib/Encode/MIME/Name.pm t/mime-name.t
> ! Encode.pm Encode.xs lib/Encode/Encoding.pm
> new method: mime_name()
> inspired by: MIYAGAWA
> ! t/encoding.t
> Subject: Re: Compress::Zlib, pack "C" and
utf-8 [PATCH]
> From: Marc Lehmann <schmorp schmorp.de>
> Date: Thu, 12 Apr 2007 08:41:53 +0200
> Message-ID: <20070412064153.GA22475 schmorp.de>
> http://public.activestate.com/cgi-bin/perlbrowse/p/31194
> ! Unicode/Unicode.pm
> POD fix.
> Message-Id: <20070417220547.GA11999 zetta.zet>
>
> =for Signature
>
> Dan the Encode Maintainer
>
>
Thanks! Encode was updated to version 2.21 with change
#31212.
Steve Peters
steve fisharerojo.org
|