-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 23-02-2005 00:20, Andreas Schuldei wrote: > On Tue, Feb 22, 2005 at 09:31:11PM +0100, cobaco (aka Bart Cornelis) wrote: > >>does 'iconv -f <some-encoding> -t <some-encoding>' always work for detecting >>if something is in <some-encoding> or does this only work for utf-8? > > > iconv can not detect the encoding some file is in. the above test > works by failing on illegal utf-8 byte streams. because latin* > encodings use all 256 bytes for chars, every possible bytestream > is leagal and it will not fail for any latin* encoding. hence the > test will not work.
Are you aware of the alternative tool "recode"? - Jonas - -- * Jonas Smedegaard - idealist og Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ - Enden er n�r: http://www.shibumi.org/eoti.htm -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCHH6Ln7DbMsAkQLgRAkVOAJ9gtxRMv7hgetSN54VZRKg6TyLHywCff136 OcT5CvPj+3/uOEwA6JCpQm8= =Hz9g -----END PGP SIGNATURE-----

