bonjour,
j'ai un vrai soucis a comprendre cette exercice
Exercice 7.1 :
Installer sur votre ordinateur un programme capable de convertir entre différentes normes de codage de caractères. Par exemple, un programme nommé iconv ou tcs, comme Translate Character Set font l’affaire. Quels sont les codages que supporte ce programme ? En citer deux qui ont une compatibilité ascendante avec l’ASCII (en dehors de l’UTF et de l’ISO8859) et un qui est incompatible. Ne pas oublier de mentionner la manière dont vous avez déterminé cette compatiblité.
J'ai installer un programme nommé tcs(Translate Character Set)
Les codages que supporte le programme (ranslate Character Set) :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| sur le terminal on tappe tcs -slcv
donc les codages qui supporte le programme est :
character sets:
utf FSS-UTF a.k.a. UTF-8
utf1 UTF-1 (ISO 10646 Annex A)
ascii 7-bit ASCII
8859-1 Latin-1 (Western and Northern Europe including Italian)
latin1 ISO 8859-1
8859-2 Latin-2 (Eastern Europe except Turkey and the Baltic countries)
8859-3 Latin-3 (Mediterranean, South Africa, Esperanto)
8859-4 Latin-4 (Scandinavia and the Baltic countries; obsolete)
8859-5 Part 5 (Cyrillic)
8859-6 Part 6 (Arabic)
8859-7 Part 7 (Greek)
8859-8 Part 8 (Hebrew)
8859-9 Latin-5 (Turkey, Western Europe except Icelandic and Faroese)
8859-10 Latin-6 (Northern Europe)
8859-14 Latin-8 (Celtic)
koi8 KOI-8 (GOST 19769-74)
ucode Russian U-code
cp866 Russian MS-DOS encoding (CP 866)
av Alternativnyj Variant
cp1251 Russian MS-DOS encoding (CP 1251)
ov Osnovnoj Variant
sf1 ISO-646: Finnish/Swedish SF-1 variant
sf2 ISO-646: Finnish/Swedish SF-2 variant (recommended)
jis(from) guesses at the JIS encoding
jis-kanji ISO 2022-JP
ujis EUC-JX: JIS 0208
ms-kanji Microsoft, or Shift-JIS
big5 Big 5 (HKU)
gb GB2312-80
euc-k Korean EUC: ASCII+KS C 5601 1987
tis Thai+ASCII (TIS 620-1986)
viet1 Vietnamese VSCII-1 (1993)
viet2 Vietnamese VSCII-2 (1993)
viscii Vietnamese VISCII 1.1 (1992)
msdos IBM PC: CP 437
msdos2 IBM PC: CP 437 with graphics in C0
ps2 IBM PS/2: CP 850 (Multilingual)
macrom Macintosh Standard Roman character set
next NEXTSTEP character set
atari ATARI-ST character set
unicode Unicode 1.1
ebcdic EBCDIC
utf-l2 to |
et pour trouver la compatibilité j'essaye de crée un fichier exemple :
le fichier contient la phrase je suis un code ascii donc est ascii
mais ce que je ne comprend pas pourquoi quand je tappe
tcs -f ascii -t 8859-1 < f1.txt > f2.txt
file f2.txt donne tjrs ascii et non 8859-1 ??
merci
Partager