The problem of garbled codes in mock

1. The project of intellij idea has been set to utf-8.

2utf-8
json



3
GBK

Content-Type: text/plain; charset=utf-8

java -jar -Dfile.encoding=UTF-8 terminal

16 customers 2018 10:44:47 [nioEventLoopGroup-3-2] INFO Response return:

HTTP/1.1 200
Content-Length: 6
Content-Type: text/plain; charset=utf-8

trickle down


I set java-jar-Dfile.encoding=UTF-8 at startup so that the response obtained by the browser is utf-8
but the terminal of intellij idea becomes garbled

Menu