Home  >  Article  >  Java  >  Solution to garbled code when starting TOMCAT html in idea

Solution to garbled code when starting TOMCAT html in idea

怪我咯
怪我咯Original
2017-06-25 10:13:345015browse

In the Startup/Connection panel of the run/debug configuration dialog box,

check Pass environment variables.

and add an environment variable,

Name fills in JAVA_TOOL_OPTIONS , Value fill in -Dfile.encoding=UTF-8.

idea启动TOMCAT html 乱码

idea启动TOMCAT html 乱码

idea启动TOMCAT html 乱码

# #Click OK. Restart TOMCAT for debugging.

This set of procedures perfectly solves the problem of garbled characters.

The above is the detailed content of Solution to garbled code when starting TOMCAT html in idea. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn