推荐学习书目
› 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 · Oct 29, 2021 · 1796 views
    This topic created in 1794 days ago, the information mentioned may be changed or developed.
    为了方便调试,我把日志文件加入到 pycharm 的日志列表中。
    但是在运行时查看日志,log 窗口会把中文显示成乱码。

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

    难道大家都没有遇到过这个问题?
    2 replies  •  2021-11-10 11:25:11 +08:00
    vanton
        1
    vanton  
       Nov 9, 2021
    OSX 还是 Windows ?

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

    Windows 的话,windows 设置 - 语言区域 - 管理语言设置 - 更改系统区域设置 - 选中使用 Unicode utf-8 提供全球语言支持。可能会要求重启。
    shyrock
        2
    shyrock  
    OP
       Nov 10, 2021
    @vanton #1 谢谢回复。是 windows ,但是你这个全球语言支持,网上都说乱码加重了。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   880 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 19:03 · PVG 03:03 · LAX 12:03 · JFK 15:03
    ♥ Do have faith in what you're doing.