Problem:
On a Linux or macOS system you may encounter the following error:
UnicodeEncodeError: 'ascii' codec can't encode characters in position
Solution:
Bash users:
Open a Terminal window and run:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
Close and reopen your Terminal window for the changes to take effect. Or you can add these to your ~/.bahsrc
on Linux or ~/.bash_profile
on macOS as follows.
csh Users:
setenv LANG en_US.UTF-8
setenv LC_ALL en_US.UTF-8
Close and reopen your Terminal window for the changes to take effect. Or you can add this to your ~/.csh
on Linux and macOS.