Error your locale uses ASCII... how to change to UTF?

On a clean system, I have installed Flexget and now get an error I have had before. Don’t remember how I solved it.

2018-01-26 14:15 WARNING  manager                       Your locale declares ascii as the filesystem encoding. Any plugins reading filenames from disk will not work properly for filenames containing non-ascii characters. Make sure your locale env variables are set up correctly for the environment which is launching FlexGet.

and when I run locale:

osmc@RPi:~$ locale
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C

I already ran sudo dpkg-reconfigure locales and selected en_GB.UTF-8 UTF-8. This was the output:

Generating locales (this might take a while)...
  en_GB.UTF-8... done
Generation complete.
osmc@RPi:~$

But when I run locale again, nothing has changed. Not sure if anything should change. I just want to make sure Flexget will use UTF so there will be no issues. How to fix this?

You need to reboot the Pi.

1 Like

yes that was stupid of me… thank you.

Just an fyi, this is still an issue with the October 2018 version of OSMC on a Vero4K.
I have to sudo dpkg-reconfigure localesto switch from ASCII/C to UTF.

Hi, there!

I’ve followed all the steps (reboot included) and it didn’t work. When I run locale I get this:

LANG=C
LANGUAGE=
LC_CTYPE=“C”
LC_NUMERIC=“C”
LC_TIME=“C”
LC_COLLATE=“C”
LC_MONETARY=“C”
LC_MESSAGES=“C”
LC_PAPER=“C”
LC_NAME=“C”
LC_ADDRESS=“C”
LC_TELEPHONE=“C”
LC_MEASUREMENT=“C”
LC_IDENTIFICATION=“C”
LC_ALL=C

Any hint?

Tanks in advance.