android开发

export LC_ALL=en_US.UTF-8

2020-04-16  本文已影响0人  android_Pie

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 就行了

上一篇下一篇

猜你喜欢

热点阅读