IntelliJ IDEA 統(tǒng)一設(shè)置編碼為utf-8編碼的實(shí)現(xiàn)
問(wèn)題一:
File->Settings->Editor->File Encodings
問(wèn)題二:
File->Other Settings->Default Settings ->Editor->File Encodings
問(wèn)題三:
將項(xiàng)目中的.idea文件夾中的encodings.xml文件中的編碼格式改為uft-8
問(wèn)題四:
File->Settings->Build,Execution,Deployment -> Compiler -> Java Compiler
設(shè)置 Additional command line parameters選項(xiàng)為 -encoding utf-8
問(wèn)題五:
1)打開(kāi)Run/Debug Configuration,選擇你的tomcat
2) 然后在 Server > VM options 設(shè)置為 -Dfile.encoding=UTF-8 ,重啟tomcat
問(wèn)題六:
清空瀏覽器緩存再試一次。
到此這篇關(guān)于IntelliJ IDEA 統(tǒng)一設(shè)置編碼為utf-8編碼的實(shí)現(xiàn)的文章就介紹到這了,更多相關(guān)IDEA 統(tǒng)一設(shè)置編碼為utf-8內(nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. 在Android中使用WebSocket實(shí)現(xiàn)消息通信的方法詳解2. 淺談python出錯(cuò)時(shí)traceback的解讀3. ASP 信息提示函數(shù)并作返回或者轉(zhuǎn)向4. Python importlib動(dòng)態(tài)導(dǎo)入模塊實(shí)現(xiàn)代碼5. windows服務(wù)器使用IIS時(shí)thinkphp搜索中文無(wú)效問(wèn)題6. 利用promise及參數(shù)解構(gòu)封裝ajax請(qǐng)求的方法7. python matplotlib:plt.scatter() 大小和顏色參數(shù)詳解8. .NET中l(wèi)ambda表達(dá)式合并問(wèn)題及解決方法9. JSP數(shù)據(jù)交互實(shí)現(xiàn)過(guò)程解析10. Nginx+php配置文件及原理解析
