eclipse修改properties文件的编码

eclipse修改properties文件的编码

原文地址 https://blog.csdn.net/lewky_liu/article/details/75213383

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。


猜你喜欢

转载自blog.csdn.net/budaoweng0609/article/details/79993443