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
shyrock
V2EX  ›  Python

pycharm 的日志文件窗口中文乱码问题

  •  
  •   shyrock · 2021-10-29 16:23:02 +08:00 · 1133 次点击
    这是一个创建于 907 天前的主题,其中的信息可能已经有所发展或是发生改变。
    为了方便调试,我把日志文件加入到 pycharm 的日志列表中。
    但是在运行时查看日志,log 窗口会把中文显示成乱码。

    查了 google ,试了各种修改 console 、editor 设置,以及修改 vmoption 等等,都无效。

    难道大家都没有遇到过这个问题?
    2 条回复    2021-11-10 11:25:11 +08:00
    vanton
        1
    vanton  
       2021-11-09 16:40:01 +08:00
    OSX 还是 Windows ?

    OSX 一般不会有这个问题,所有设置一般默认是 utf-8 。

    Windows 的话,windows 设置 - 语言区域 - 管理语言设置 - 更改系统区域设置 - 选中使用 Unicode utf-8 提供全球语言支持。可能会要求重启。
    shyrock
        2
    shyrock  
    OP
       2021-11-10 11:25:11 +08:00
    @vanton #1 谢谢回复。是 windows ,但是你这个全球语言支持,网上都说乱码加重了。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5295 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:10 · PVG 16:10 · LAX 01:10 · JFK 04:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.