Impostazione corretta della lingua in Debian (impostazione locale)

From RVM Wiki
Revision as of 07:26, 15 September 2011 by Gabriele.vivinetto (talk | contribs) (Created page with "Per impostare correttamente il locale in Debian, usando la codifica UTF8: * Impostare la lingua Inglese UTF8 come default <pre> cat | sudo tee /etc/default/locale > /dev/null <…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Per impostare correttamente il locale in Debian, usando la codifica UTF8:

  • Impostare la lingua Inglese UTF8 come default
cat | sudo tee /etc/default/locale > /dev/null <<"EOFile"
# This file has been edited manually
LANG=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
EOFile
  • Selezionare i locale da usare sul sistema (sia per la console che per gli applicativi, tipo squirrelmail)
sudo dpkg-reconfigure locales
 │    [*] en_US.UTF-8 UTF-8                                              ▒   │ 
 │    [*] it_IT.UTF-8 UTF-8                                              ▮   │ 
  • Impostare il locale di default
 │ Default locale for the system environment:                                │ 
 │                                en_US.UTF-8                                │ 
  • Generarli a mano per sicurezza
sudo locale-gen
  • Verificare che siano disponibili
sudo locale -a
  • Aggiornare eventuali modifiche necessarie

sudo update-locale

  • Riloggarsi , e testare:
touch /tmp/€àèìòù && rm -f  /tmp/€àèìòù && echo "Locale UTF-8 Ok."
Locale UTF-8 Ok.