ValueError: unknown locale: UTF-8
Why it happen?
The default value of locale env in OSX was set with an incorrect value. To list all default locale, simply type the following command in terminal
locale
You will see LC_CTYPE=UTF-8
in there which is incorrect. While other LC_*
has no value assigned to (blank)
Solution
Add this line to ~/.bash_profile and re-open a terminal
export LC_ALL=en_US.UTF-8
Written by Rezigned
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#