Getting error "Anki requires a UTF-8 locale"

when I try to start Anki, i get the following error:


Anki starting…
Anki requires a UTF-8 locale.
Please Google ‘how to change locale on [your Linux distro]’


when i run locale, i get:


LANG=en_US.UTF-8
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


and when i run echo $LANG, i get


en_US.UTF-8


i tried running dpkg-reconfigure locales to set my locale, and uninstalled and reinstalled anki. none of this has helped. Any ideas?

You should add details about what OS you’re using.

Doesn’t LC_ALL override all other settings including LANG? If so, then you would need to either unset LC_ALL or set LC_ALL=en_US.UTF-8 or somesuch.

sorry, i’m on pop 22.04.

THIS! all it took was an

unset LC_ALL

and anki started right up. Even learned a bit along the way. Thanks a lot for your time.

A couple of weeks ago i tried upgrading my sysytem to pop_os 24.04. It got partway through the process and then failed. ever since then, I’ve had a few little issues like this (spotify app no longer working is another example). not certain the anki issue was related, but it may be. In any case, thanks again!