Du kan köra detta skript för att ta reda på om du har fullt stöd för UTF-8 (environment, terminal, osv).
http://pastebin.com/k5RS8u2G
Citat:
$ wget -O localecheck
http://pastebin.com/raw.php?i=k5RS8u2G
$ chmod +x localecheck
$ ./localecheck
Exempel på output om allting är som det ska:
Citat:
* Parent: 4548 sshd: gurka [priv]
* Terminal: 4553 sshd: gurka@pts/0
* Shell: 4554 -bash
warning: I cannot check your terminal's settings over SSH, skipping.
notice: Also skipping term=parent checks.
Looks good, but you still need to check your terminal: --> ★ <--
* a star -- font and terminal are okay.
* 3 question marks -- your terminal does not correctly interpret UTF-8.
* a box or rectangle -- UTF-8 works fine, but you need a better font.
* empty area -- you really need a better font or something.
Exempel på output om man t.ex sätter LANG till en_US istället för en_US.UTF-8:
Citat:
* Parent: 5295 sshd: gurka [priv]
* Terminal: 5300 sshd: gurka@pts/0
* Shell: 5301 -bash
warning: I cannot check your terminal's settings over SSH, skipping.
notice: Also skipping term=parent checks.
warning: (shell) LANG: non-UTF8 locale "en_US"
problem: Your current locale is using a legacy charset.
* The incorrect variables are:
- (shell) LANG (currently "en_US")
* Change your locales to their UTF-8 variants.
1 problems found. Here's a quick UTF-8 test for you: --> ★ <--
* a star -- font and terminal are okay.
* 3 question marks -- your terminal does not correctly interpret UTF-8.
* a box or rectangle -- UTF-8 works fine, but you need a better font.
* empty area -- you really need a better font or something.