Add this to your .bash_profile
file-- there's a similar bug with PyCharm's terminal component on macOS mojave (10.14).
# locale settings, string mac/chinese/pycharm/git bug
# https://coderwall.com/p/ehvc8w/set-lang-variable-in-osx-terminal-app
export LANG="en_ENLANG="en_GB.UTF-8"
export LC_COLLATE="en_ENLC_COLLATE="en_GB.UTF-8"
export LC_CTYPE="en_ENLC_CTYPE="en_GB.UTF-8"
export LC_MESSAGES="en_ENLC_MESSAGES="en_GB.UTF-8"
export LC_MONETARY="en_ENLC_MONETARY="en_GB.UTF-8"
export LC_NUMERIC="en_ENLC_NUMERIC="en_GB.UTF-8"
export LC_TIME="en_ENLC_TIME="en_GB.UTF-8"
export LC_ALL=
After doing this, you'll need to restart your system for it to take effect.
Credit goes to this blog post