zoukankan      html  css  js  c++  java
  • Eclipse+pydev2.2+python2.7 中文乱码问题

    Eclipse+pydev2.2+python2.7 中文乱码问题

    Eclipse的设置

    window->preferences->general->editors->text editors->spelling->encoding->UTF-8

    window->preferences->workspace->text file encoding->UTF-8

    打开eclipse安装目录->eclipse.ini,末行加上”-Dfile.encoding=UTF-8”

    文件编码

    py文件记得保存成UTF-8,文件首行加上”#coding=utf-8”

    run时设置

    run-->run configurations->python run->Common-> Encoding ->UTF-8

  • 相关阅读:
    20210304
    20210303
    20210302
    20210210
    20210209
    20210208
    20210207
    例4-6
    例4-5
    例4-4
  • 原文地址:https://www.cnblogs.com/linyawen/p/2194106.html
Copyright © 2011-2022 走看看