eclipse的properties文件是默认ISO-8859-1编码的,如果在properties里输入中文会导致乱码,此时需要修改其编码为utf-8,具体步骤如下:
Window→Preferences→General→Content Types→Text,然后单击Java Properties Files,选定下方的*.properties(locked),接着将最下方的ISO-8859-1改为utf-8,然后点击旁边的 Update,最后点击OK。
mb63da7c4f9787c ©著作权
文章标签 Java properties文件 Text 文章分类 代码人生
eclipse的properties文件是默认ISO-8859-1编码的,如果在properties里输入中文会导致乱码,此时需要修改其编码为utf-8,具体步骤如下:
Window→Preferences→General→Content Types→Text,然后单击Java Properties Files,选定下方的*.properties(locked),接着将最下方的ISO-8859-1改为utf-8,然后点击旁边的 Update,最后点击OK。
我们新建jsp页面的时候,默认编码是ISO什么的,但是我们一般需要编码为UTF-8或自己想要的,但又不想每个页面建好再去修改一次,所以
properties文件乱码问题 eclipse
关于设置Eclipse编码集的问题。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M