Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problemes d'encodage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
broschi
Apprentice
Apprentice


Joined: 20 Aug 2002
Posts: 189
Location: Atlantide

PostPosted: Tue Jan 14, 2003 9:29 am    Post subject: problemes d'encodage Reply with quote

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
View user's profile Send private message
crevette
Guru
Guru


Joined: 21 May 2002
Posts: 543
Location: Chrooted in Nice, France

PostPosted: Tue Jan 14, 2003 2:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
broschi
Apprentice
Apprentice


Joined: 20 Aug 2002
Posts: 189
Location: Atlantide

PostPosted: Tue Jan 14, 2003 8:05 pm    Post subject: Reply with quote

MERCI, ca fonctionne a merveille!! :D 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
View user's profile Send private message
crevette
Guru
Guru


Joined: 21 May 2002
Posts: 543
Location: Chrooted in Nice, France

PostPosted: Tue Jan 14, 2003 9:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum