问题
ssh 到服务器 python xxx.py 时出现
UnicodeEncodeError: 'ascii' codec can't encode character in position 0: ordinal not in range(128)
解决方案
在 .zshrc 末尾添加:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
问题
ssh 到服务器 python xxx.py 时出现
UnicodeEncodeError: 'ascii' codec can't encode character in position 0: ordinal not in range(128)
解决方案
在 .zshrc 末尾添加:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8