亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

java - Win10下 idea的編碼設(shè)置成了UTF-8,但是返回時(shí)亂碼顯示,哪里有問題??
怪我咯
怪我咯 2017-04-18 10:52:30
0
4
806



如圖,我在啟動(dòng)服務(wù)的時(shí)候,命令行是亂碼的。調(diào)試的時(shí)候,返回值是亂碼的,所以前臺(tái)顯示的時(shí)候,也就亂碼顯示了。

我的setting設(shè)置的都是UTF-8,我哪里配置錯(cuò)了??

怪我咯
怪我咯

走同樣的路,發(fā)現(xiàn)不同的人生

reply all(4)
黃舟

The Windows host CMD encoding is GBK. Please pay attention to this

迷茫

I have never used idea. There are two types of garbled characters on the internet: editor garbled characters and console garbled characters. Does your info belong to editor garbled characters or console garbled characters? , and the font in color&fonts has also been changed to utf-8

I see that the picture you added is garbled on the console: Online solution
The console output is garbled. To solve this problem, just add -Dfile.encoding=UTF-8 to the VM options in configurations and it will be solved

巴扎黑

------------------------------------------------- ------------correct answer------------------------------------ ---------------
Okay, it's a problem with my project.
My project is a gradle project, so I need to add the following configuration in build.gradle:
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'

伊謝爾倫

Modifying the file encoding will not affect the console output.
Have the questioner modified IDEA字體? If so, you can try changing it to the default value.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template