每一天都有新发现...

eclipse console中文乱码问题解决

上一篇 / 下一篇  2012-08-27 11:10:04 / 个人分类:myeclipse

建置全UTF-8的環境:

1.在eclipse.ini的-vmargs下面加上「-Dfile.encoding=UTF-8」。

2.eclipse-->Window-->Preferences-->General-->Workspace-->Text file encoding-->UTF-8

3.Installed JREs-->Default VM Arguments:-->-Dfile.encoding=UTF-8

4.eclipse-->Run-->Run Configurations-->Arguments-->VM arguments-->-Dfile.encoding=UTF-8

5.eclipse-->Run-->Run Configuration-->Common 頁籤--> Console Encoding-->Others-->UTF-8

==>亂碼!

5.eclipse-->Run-->Run Configuration-->Common 頁籤--> Console Encoding-->Others-->big5

==>ok!

转自:http://eggboss.iteye.com/blog/639841


TAG:

 

评分:0

我来说两句

Open Toolbar