Re: Character encoding translation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Ralf Corsepius wrote:
> On Tue, 2006-05-09 at 10:20 -0400, Michael J. Pawlowsky wrote:
>> I'm looking for a way to translate UTF-8 documents into a Latin
>> enconding. ISO-8859-1 for instance.  Is there a utility, script,
>> command in Linux that can do this?
> 
> iconv -f utf-8 -t ISO-8859-1 infile > outfile

And in some cases that may fail, you can add //TRANSLIT to have iconv
try to transliterate any characters from utf to latin (things like
curly quotes come to mind).

The syntax would be:

iconv -f utf-8 -t ISO-8859-1//TRANSLIT infile > outfile

- -- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
Going to hell when I die would just be redundant.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iG0EARECAC0FAkRgptomGGh0dHA6Ly93d3cucG9ib3guY29tL350bXovcGdwL3Rt
ei5hc2MACgkQuv+09NZUB1r+GwCdGYiddjtxdIihBKwRkpaIcBcolj4AoLansQaM
FLH0rmasKrk9SogL+wk8
=CLS1
-----END PGP SIGNATURE-----


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux