eclipse設置UTF-8


1.修改workspace編碼

windows->preferences->gengral->workspace

選擇other->UTF-8。

 

 2.修改Content Types編碼

windows->preferences->gengral->conten Types->Text

Default enconding–>UTF-8–>Update(這樣把里面所有的文件設置為UTF-8編碼)

 

 3.修改web下文件的編碼

windows->preferences->web->(css files、html files、javaServer face、jsp files)

在enconding設置為ISO 10646/Unicode(UTF-8)

 

 4.修改項目的編碼,對於導入的項目,包,類也可以單獨去配設置

右鍵》properties》Resource

 testNG中文亂碼

 

 

 

 

項目右鍵》Run as 》Run Configurations

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM