The simplest way is to provide information about the nature of your web hosting, the OS it runs, and how you interface (SSH?) with the server.
From the CLI on a Debian based Linux web server:-
locale -a
[/color]
will show the installed locales e.g. (Note that I'm Australian):-
scott@vultrone ~ $ locale -a
C
C.UTF-8
en_AU.utf8
POSIX
[/color] or:-
scott@vultrone ~ $ locale
LANG=en_AU.UTF-8
LANGUAGE=
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=
[/color]
To install new locales I would run:-
sudo dpkg-reconfigure locales
[/color]
... and follow the prompts, selecting a UTF-8 locale, e.g.
en_US.UTF-8 or
UTF-8 or another variant (whichever is relevant to your location).
Your error message is a reference to the
LC_CTYPE system variable - once you have installed the correct UTF-8 locale, if it doesn't show in the output of the locale command you can add it to the list of system variables with:-
sudo export LANGUAGE="$locale"
[/color]
(replace
$locale with the locale you wish to use, e.g.
UTF-8)
Note: if performance and disk space is important, you can remove unused/unneeded locales with the package
localpurge. e.g.:-
sudo apt-get install localepurge&&sudo localepurge
[/color]
•
Full documentation on locales
•
simple explanation of locales