sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
juanluis, thanks this worked. Just have to remember to reboot before do anything.
What ceases to amaze me is how DO can put out stuff in prime time wasting everyones time with such an idiotic problem, there are posts all over the place and such a simple fix. Bad first hour on DO suffice to say ;(
I just had the same problem on a fresh droplet. The solution worked, however it's a bit weird that the linux images are not preconfigured correctly with working locale settings.
Please try this
sudo nano /etc/default/locale
and edit the contet to be like that:
It works for me.
It is now 2016 and this problem is still not fixed.
Everytime I have to test something and I spin up a Debian or Ubuntu server I ran into this problem.
Until I realized it and then fixed it I wasted so much time that all those proposed speed advantages of DO are gone anyway.
Currently it looks like this:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_PAPER = "de_CH.UTF-8", LC_ADDRESS = "de_CH.UTF-8", LC_MONETARY = "de_CH.UTF-8", LC_NUMERIC = "de_CH.UTF-8", LC_TELEPHONE = "de_CH.UTF-8", LC_IDENTIFICATION = "de_CH.UTF-8", LC_MEASUREMENT = "de_CH.UTF-8", LC_TIME = "de_CH.UTF-8", LC_NAME = "de_CH.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
What are those crap entries doing in a fresh droplet?
export LANGUAGE=en_US.UTF-8 export LC_ALL=en_US.UTF-8
you shouldn't see any errors.
For a permanent solution,
Add the above
export commands inside