[Mimedefang] Plug-in to transcode messages
skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Thu Mar 8 03:58:07 EST 2007
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, 7 Mar 2007, Philip Prindeville wrote:
> Why do we need duplicated flavors of Latin1?
OK, I cannot stand up with all those different languages, but did you
checked out Encode in order to translit one character set into another?
It's included in the Perl base since v5.8, I think.
I use it for some stuff in my scripts in order to transform raw IBM850 and
Latin1 octets into Perl's UTF8, so I can forget about the character set.
It handles surprisingly many little problems I had with LDAP and Postgres.
However, in my impression Encode is quite strict insofar that when you
tell Encode an octet string is USASCII, but contains >= 128 characters,
they are replaced by "the substitution character".
As stated in another post, how about decode everything into Latin1 or, for
some incompatible sets, into UTF8?
UTF8 seems to be the best choice these days.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the MIMEDefang