原因是locale没有设置utf-8
locale是软件在运行时的语言环境, 它包括语言(Language), 地域 (Territory) 和字符集(Codeset)。
解决方法:
1.只在当前终端生效
export LC_ALL=zh_CN.UTF-8export LANG=zh_CN.UTF-8
2.在当前用户下生效,修改~/.bash_profile文件,添加上述两行,执行source ~/.bash_profile使生效
时间:2023-04-30 06:20:03
原因是locale没有设置utf-8
locale是软件在运行时的语言环境, 它包括语言(Language), 地域 (Territory) 和字符集(Codeset)。
解决方法:
1.只在当前终端生效
export LC_ALL=zh_CN.UTF-8export LANG=zh_CN.UTF-8
2.在当前用户下生效,修改~/.bash_profile文件,添加上述两行,执行source ~/.bash_profile使生效