Skip to content

Instantly share code, notes, and snippets.

@rinaldo-rex
Last active June 11, 2019 22:14
Show Gist options
  • Save rinaldo-rex/c7a6e6684e3b158a4be31ad1ab7a770d to your computer and use it in GitHub Desktop.
Save rinaldo-rex/c7a6e6684e3b158a4be31ad1ab7a770d to your computer and use it in GitHub Desktop.
Valueerror on python for UTF-8 on macos
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

If you have faced the error on MacOS X, add these lines to ~/.bash_profile or for a temp fix, use env LANG=en_us.UTF-8 <command> for a quickfix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment