idea html Chinese garbled, garbled console Chinese, Chinese garbled project file

1, the project file Chinese garbled

General idea is encoded incorrectly, in File | Settings | Editor | modify the code set in File Encodings.

2, the console Chinese garbled

Is generally configured to issue Tomcat, modify the config file logging.properties, utf-8 to GBK

3, html Chinese garbled

To modify set in html coding for utf-8

If your code is UTF-8 (which is a must), just find the file in the TOMCAT catalina.bat set JAVA_OPTS = plus a margin at the top

set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8

It can be resolved.

If it is to start TOMCAT by IDE tool parameters can be loaded when the IDE starts.

In other cases See also:

https://blog.csdn.net/liqimo1799/article/details/81811153

Guess you like

Origin www.cnblogs.com/hxz-nl/p/11690900.html