Re: Lettere accentate e comando tr
On Tue, Jan 19, 2016 at 08:50:09AM +0100, Marco Bodrato wrote:
> Buongiorno!
>
> stamane mi sono imbattuto in un problema col comando tr, col quale vorrei
> "normalizzare" delle lettere accentate che ho in un file. Purtroppo ci
> deve essere qualche problema con le rappresentazioni...
>
> In breve ottengo quanto segue:
>
> $ echo "àèéìòù" | tr "àèéìòù" "aeeiou"
> ueuiuuuuuuuu
>
> Dipenderà dal terminale? dalla shell? da tr? Qualche suggerimento?
Dipende da tr, che ha problemi con tutto quello che non è ASCII. Ci sono
bug aperti da anni e anni...
http://unix.stackexchange.com/questions/228558/how-to-make-tr-aware-of-non-asciiunicode-characters
ciao
Christian
Reply to: