erlug
[Top] [All Lists]

Re: [Erlug] Tabella conversioni utf-8?

To: ERlug - Lista Pubblica <erlug@xxxxxxxxxxxxxx>
Subject: Re: [Erlug] Tabella conversioni utf-8?
From: Maurizio Lemmo - Tannoiser <tannoiser@xxxxxxxxxxx>
Date: Sun, 23 Nov 2008 13:19:38 +0100
* domenica 23 novembre 2008, alle 11:42, Fernando Santagata scrive:
> > $ iconv --from-code UTF-8 --to-code US-ASCII//TRANSLIT
> > Unglück - La tombe de Copernic identifiée grâce à son ADN
> > Ungluck - La tombe de Copernic identifiee grace a son ADN
> > 
> > Questo è l'output da me (iconv 2.8.90). Per una tabella arbitraria, a
> 
> Forse il segreto e` la versione.
> Su sid c'e` la 2.7... l'hai installata a mano, vero?

Questa è etch:

mizio@gabriel:~$ iconv --from-code UTF-8 --to-code US-ASCII//TRANSLIT
Unglück - La tombe de Copernic identifiée grâce à son ADN
Ungluck - La tombe de Copernic identifiee grace a son ADN
You have new mail in /var/mail/mizio
mizio@gabriel:~$ iconv --version
iconv (GNU libc) 2.3.6
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Written by Ulrich Drepper.

Questa invece è sid:

mizio@haziel:~$ iconv --from-code UTF-8 --to-code US-ASCII//TRANSLIT
Unglück - La tombe de Copernic identifiée grâce à son ADN
Ungluck - La tombe de Copernic identifiee grace a son ADN
mizio@haziel:~$ iconv --version
iconv (GNU libc) 2.7
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Written by Ulrich Drepper.

Come vedi, non c'entrano versioni di sw o di os.

Io direi che quello che fa la differenza, è che NON stai usando un
terminale utf8 per fare sta cosa.

Per inciso, è il motivo per cui uso gnome-terminal, la possibilità di
cambiare al volo (da terminal, set-character-encoding). Ovviamente, devi
avere utf-8 compilato.

Controprova, se setto il terminale sul locale abituale (iso-8859-15):

mizio@haziel:~$ iconv --from-code UTF-8 --to-code US-ASCII//TRANSLIT
Unglück - La tombe de Copernic identifiée grâce à son ADN
Ungliconv: illegal input sequence at position 4

Questo perchè sebbene gli dici che gli darai da mangiare dell'utf, in
realtà non lo fai. Ovvero: à(iso) e à(utf) non sono la stessa cosa, e
non hanno la stessa rappresentazione in bit.

In altre parole: utf succhia come pochi. ;)
 
-- 
                          Maurizio - Tannoiser - Lemmo
                 Founder Member of ERLUG http://erlug.linux.it
-------------------------------------------------------------------------------
BOFH excuse #57:

Groundskeepers stole the root password

<Prev in Thread] Current Thread [Next in Thread>