美文网首页android开发
export LC_ALL=en_US.UTF-8

export LC_ALL=en_US.UTF-8

作者: android_Pie | 来源:发表于2020-04-16 13:42 被阅读0次

cat etc/default/locale
LANG="en_US.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"

在terminal里面输入
locale
然后输入
export LC_ALL=C
export LANGUAGE=en_US.UTF-8

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "zh_CN.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

或者
解决方法:
sudo vi /etc/default/locale
LANG="en_US.UTF-8"
编码改为这个
vi ~/.bashrc
export LC_ALL=en_US.UTF-8
然后加载该环境变量:source ~/.bashrc 就行了

相关文章

网友评论

    本文标题:export LC_ALL=en_US.UTF-8

    本文链接:https://www.haomeiwen.com/subject/zisrvhtx.html