[Mimedefang] Plug-in to transcode messages

Steffen Kaiser skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Thu Mar 8 03:58:07 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRe/QIegJIbZtwg6XAQJWuggAiJeyiKRpI+Wf/hL3zE9rNxQgM0+ny1JX
5KLcMzxfjTNOD6rKobqtqJt5PiXAoWIxh8dIMeLFqAM00ehaqVs4P6wlLp/G0r7q
YrQ4x4JtO3TxdxDovyEQtgwblCcpYVT6RTYp6xniRcnjpH+u9Q4b4hQcNf41tpuL
BFJgPsB7tcdP5y9SWQs3R11hLDMQt7q7nWbjqRaGGNk+z5qiNTdzyAgHI2Ih3Svg
18mN7+D0bP8smKuOsQIiLvSstmQiECcjGwHdqKyB1ipNdWYwTkMCaDohGgY88KnO
SCsNNxC7g3dtEkWQrsBXXFkNpFhaMQ5O2XkRySKswxj7o8vA55xnFw==
=Nsck
-----END PGP SIGNATURE-----



More information about the MIMEDefang mailing list