原因

  • 字符集配置不匹配
  • mac 上是 UTF-8

解决方法

  • 更新配置
vim ~/.zshrc

在最后加上
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
  • 配置生效
source ~/.zshrc