When I run perl, I get the warning:
perl
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset
in my case, with debian8.6, i had to change settings in:
/etc/ssh/ssh_config for #AcceptEnv LANG LC_*
/etc/ssh/ssh_config
#AcceptEnv LANG LC_*
and sshd_config for #SendEnv LANG LC_*
sshd_config
#SendEnv LANG LC_*
then restart ssh service.
at last, did
locale-gen en_US.UTF-8 and dpkg-reconfigure locales
locale-gen en_US.UTF-8
dpkg-reconfigure locales