Just a few minutes ago I realized the locale configuration of my Ubuntu Hardy 8.04 Linode VPS was not using UTF-8 when I was checking out an SVN repo.
So I checked the current available locales:
locale -a
C
POSIX
As you can see en_US.utf8 was not there. So I had to be added manually:
sudo localedef –no-archive -i en_US -c -f UTF-8 en_US.UTF-8
Now, checking the locales again I got listed:
If you’re an experienced Linux user this is not big deal but in this blogsphere-powered days I figured out this kind of info will be helpful to somebody out there so I’m sharing it here.
locale -a
C
en_US.utf8
POSIX
So the last step is to set this in the environment so it’s configured correctly the next time you log into the server and also if the server gets rebooted.
The following two lines have to vi added to /etc/environment
LANGUAGE=”en_US.utf8″
LANG=”en_US.utf8″
And that it’s. You might one to reboot the server not it’s not really neccesary.
If you’re Ubuntu server is not configured this way I’d recommend tweaking the configuration.




















0 Responses to “Adding en_US.utf8 locale to an Ubuntu Hardy server”