V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
88
V2EX  ›  Python

Mac Terminal 下中文乱码

  •  
  •   88 · Sep 19, 2014 · 5838 views
    This topic created in 4239 days ago, the information mentioned may be changed or developed.
    安装了 Solarized 主题后,中文就变成了一个一个问号,Preference 里 Text Encoding 为 UTF-8,也不知道问题出在哪里。。。
    8 replies    2014-09-27 08:54:40 +08:00
    banbanchs
        1
    banbanchs  
       Sep 19, 2014
    字体看看
    skyline75489
        2
    skyline75489  
       Sep 19, 2014
    怀疑是字体问题
    xtenng
        3
    xtenng  
       Sep 19, 2014
    linux 下有个locale设置
    scorpius
        4
    scorpius  
       Sep 19, 2014
    export LANG=zh_CN.utf-8
    88
        5
    88  
    OP
       Sep 19, 2014
    @scorpius 谢谢,有用了。但是重启terminal之后又没用了。。。
    Azone
        6
    Azone  
       Sep 19, 2014
    @88 写到 ~/.bash_profile 文件里面
    88
        7
    88  
    OP
       Sep 20, 2014
    @Azone 写到 .bash_profile 里还是没有用....我之前添加 PATH 时也是这样,写到 .bash_profile 里也没有用。不知道什么原因,好奇怪....
    harryhao
        8
    harryhao  
       Sep 27, 2014
    @88 我的也是,最后是把PATH写到 /etc/paths 里……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2678 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 15:58 · PVG 23:58 · LAX 08:58 · JFK 11:58
    ♥ Do have faith in what you're doing.