zoukankan      html  css  js  c++  java
  • MyEclipse10中文乱码

    1 进入window->preferences

    • general->content types,可以设置Text对应的default encoding值为UTF-8或为空,然后点击update即可。也可能点击Text进入java source file属性,设置default encoding值为UTF-8或为空,点击update。
    • general->editors->text editors->spelling。设置encoding属性为UTfF-8.
    • general->workspace。设置text file encoding为UTF-8.
    • myeclipse ->files and editors。此处通常无需修改,保持默认即可。默认ASP and PHP和JSP的encoding为ISO Latin-1,其他属性的encoding值为ISO 10646/Unicod(UTF-8)


    2 右击工程的properties属性,选择resource,设置text file encoding值为UTF-8.

    以上方法基本可以解决所有乱码问题,如果再不行,你可以选择某个java文件,右击properties属性,进入resource选择text file encoding的编码方式为UTF-8.或者将单个文件放入txt文本,确保不乱码后再复制进来。这两方法只适合少量文件乱码,不适合整个工程乱码。

    最后重新启动程序就可以了。

  • 相关阅读:
    LeetCode刷题记录
    开始学习Functional Programming
    明天软软onsite
    Criteo电面二
    Jet.com
    还需要补充很多知识
    重新粗推了一下Master Theorem
    买了第一台mac
    病来如山倒
    Integer.parseInt vs Integer.valueOf
  • 原文地址:https://www.cnblogs.com/jsping/p/3620940.html
Copyright © 2011-2022 走看看