View previous topic :: View next topic |
Author |
Message |
broschi Apprentice


Joined: 20 Aug 2002 Posts: 189 Location: Atlantide
|
Posted: Tue Jan 14, 2003 9:29 am Post subject: problemes d'encodage |
|
|
Un vrai bordel. Je dois remettre des fichiers textes (XML pour etre precis) claires avec des accents itou, mais je n'arrive pas a specifier un type en particulier. Jedit et Gedit ne me donne pas d'option pour specifier le format UTF-8 (celui que je dois utiliser).
Je sais que Gedit 2 fonctionne bien, mais j'utilise GTk+ 1.2 et donc Gedit 0.9.
Quelqu'un connait une facon d'encoder des fichiers texte au format UTF-8? Pas de prob si c'est une solution X ou a la console c'est du pareil au meme pour moi.
EDIT:
Kedit et Abiword me donnent cette option, mais c'est toujours la meme chose. Du moins, Mozilla n'affiche pas le fichier comme il faut et j'ai UTF-8 et trois types de Western specifie.
Grrr, Netscape 4 avec Western 8859-1 affiche les accents correctements (Kedit a donc echoue) bien que Mozilla avec ce meme type ne veut rien savoir. J'utilise Mozilla 1.0.1 _________________ "Is this type of thing going to happen every time we switch to improbability drive?" "Very probably I'm afraid." |
|
Back to top |
|
 |
crevette Guru


Joined: 21 May 2002 Posts: 543 Location: Chrooted in Nice, France
|
Posted: Tue Jan 14, 2003 2:40 pm Post subject: |
|
|
tu tapes ton texte au format iso-8859-1 comme d'hab'
et apès tu tapes
Code: |
iconv --from-code=8859-1 --to-code=utf-8 < "ton_fichier" > "fichier_de_sortie" |
ca permet de tout tranfeormer de l'iso-8859-1 vers UTF-8 |
|
Back to top |
|
 |
broschi Apprentice


Joined: 20 Aug 2002 Posts: 189 Location: Atlantide
|
Posted: Tue Jan 14, 2003 8:05 pm Post subject: |
|
|
MERCI, ca fonctionne a merveille!! Solution encore meilleur puisque je peux utiliser l'editeur que je veux.
La seule chose c'est que c'est --from-code=ISO8859-1, mais bon c'est un detail. _________________ "Is this type of thing going to happen every time we switch to improbability drive?" "Very probably I'm afraid." |
|
Back to top |
|
 |
crevette Guru


Joined: 21 May 2002 Posts: 543 Location: Chrooted in Nice, France
|
Posted: Tue Jan 14, 2003 9:37 pm Post subject: |
|
|
Euh pardon... c'etait ISO8859-1, oui.
t'as de la chance parce que j'ai cherché ça hier, j'ai trouvé sur Google |
|
Back to top |
|
 |
|