Simple list of commands useful to fix locales on raspberry pi. In fact after a fresh install often perl is complaining about misconfigured locales. \
alternatively one can fill the /etc/default/locale
with
LANG=en_US.UTF-8
LC_TIME=it_IT.UTF-8
LANGUAGE=en_US:en
LC_ALL=en_US.UTF-8