On Sun, May 08, 2011 at 06:24:32PM +0200, Paul Bartholdi wrote:
> Exemple : "ç" est représenté par "c3 83 c2 a7" (hex).
>
> À quel encodage ai-je affaire ?
UTF8 qui a passé par une conversion erroné ISO-8859-1->UTF8.
Demonstration avec le logiciel "recode":
rossen@mango:~$ echo ç > test1.txt
rossen@mango:~$ hd test1.txt
00000000 c3 a7 0a |...|
00000003
rossen@mango:~$ recode latin1..utf8 test1.txt
rossen@mango:~$ hd test1.txt
00000000 c3 83 c2 a7 0a |.....|
00000005
Comment corriger? Faire l'inverse, i.e. une conversion UTF8->ISO-8859-1:
rossen@mango:~$ recode utf8..latin1 test1.txt
rossen@mango:~$ hd test1.txt
00000000 c3 a7 0a |...|
00000003
--
Erik Rossen
[email protected]
http://www.rtfm-sarl.ch
OpenPGP key: 2935D0B9
_______________________________________________
gull mailing list
[email protected]
http://forum.linux-gull.ch/mailman/listinfo/gull