在使用eclipse編輯java時,導入項目時會出現中文注釋亂碼
解決方法:
windows–preferences–General–Content Types–text–java source file
將default encoding改為GBK,點擊update即可
但是有時候把導入項目解決了,會發現原有已存在的項目出現亂碼問題
這時需要檢查該項目是不是默認編碼為GBK
右擊項目,properties–resource–text file encoding
選擇other默認為GBK,點擊apply即可
---------------------
作者:soledad_d
來源:CSDN
原文:https://blog.csdn.net/soledad_d/article/details/78246561