V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2014-09-19 17:03:05 +08:00 · 4835 次点击
    这是一个创建于 3500 天前的主题,其中的信息可能已经有所发展或是发生改变。
    安装了 Solarized 主题后,中文就变成了一个一个问号,Preference 里 Text Encoding 为 UTF-8,也不知道问题出在哪里。。。
    8 条回复    2014-09-27 08:54:40 +08:00
    banbanchs
        1
    banbanchs  
       2014-09-19 17:14:50 +08:00
    字体看看
    skyline75489
        2
    skyline75489  
       2014-09-19 17:34:25 +08:00
    怀疑是字体问题
    xtenng
        3
    xtenng  
       2014-09-19 18:05:28 +08:00
    linux 下有个locale设置
    scorpius
        4
    scorpius  
       2014-09-19 18:09:56 +08:00
    export LANG=zh_CN.utf-8
    88
        5
    88  
    OP
       2014-09-19 22:26:41 +08:00
    @scorpius 谢谢,有用了。但是重启terminal之后又没用了。。。
    Azone
        6
    Azone  
       2014-09-19 23:40:37 +08:00
    @88 写到 ~/.bash_profile 文件里面
    88
        7
    88  
    OP
       2014-09-20 10:14:01 +08:00
    @Azone 写到 .bash_profile 里还是没有用....我之前添加 PATH 时也是这样,写到 .bash_profile 里也没有用。不知道什么原因,好奇怪....
    harryhao
        8
    harryhao  
       2014-09-27 08:54:40 +08:00
    @88 我的也是,最后是把PATH写到 /etc/paths 里……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2845 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 06:03 · PVG 14:03 · LAX 23:03 · JFK 02:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.