1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
O neysx mou ipe oti einai protimotero logou tou oti to iconv den mporei |
5 |
na kanei inplace recoding. Gi'afto, parakalo xrisimopiiste to recode: |
6 |
|
7 |
http://www.gentoo.org/proj/en/gdp/doc/doc-tipsntricks.xml |
8 |
|
9 |
4. Frequently Asked Questions |
10 |
|
11 |
How do I convert a file to UTF-8? |
12 |
|
13 |
There are quite a few tools that help you. A popular one is |
14 |
app-text/recode. Another one is iconv, part of sys-libs/glibc. |
15 |
|
16 |
Recode's use is pretty straightforward. You tell it what character |
17 |
encoding is currently used by the document and to what encoding you want |
18 |
to convert the document. |
19 |
|
20 |
For instance, to convert a document from ISO-8859-15 (also known as |
21 |
Latin-9) to UTF-8, you can use: |
22 |
|
23 |
Code Listing 4.1: Recoding a file |
24 |
|
25 |
(l9 = ISO-8859-15, u8 = UTF-8) |
26 |
$ recode l9..u8 file.xml |
27 |
|
28 |
|
29 |
|
30 |
- -- |
31 |
Ioannis Aslanidis |
32 |
|
33 |
Gentoo Staff Member |
34 |
Gentoo Linux |
35 |
|
36 |
<deathwing00[at]gentoo[dot]org> 0xB9B11F4E |
37 |
<deathwing00[at]forums[dot]gentoo[dot]org> 0xC2539DA3 |
38 |
|
39 |
Hellenic Gentoo (http://hellenicgentoo.sf.net) |
40 |
Gentoo Forums (http://forums.gentoo.org) |
41 |
-----BEGIN PGP SIGNATURE----- |
42 |
Version: GnuPG v1.4.1 (MingW32) |
43 |
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE |
44 |
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org |
45 |
|
46 |
iD8DBQFC3ZS6zbl9qrmxH04RAuuCAKCAmY8Q/fNtZoWZ9DAVuYz3sst3VwCdGJw4 |
47 |
NoqWux4p8tKaAw2ak4sf2K8= |
48 |
=9E6t |
49 |
-----END PGP SIGNATURE----- |
50 |
-- |
51 |
gentoo-doc-el@g.o mailing list |