The response of javaweb sets the encoding format of the response

Three ways

response.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
response.setLocale(new java.util.Locale("zh","CN"));

Guess you like

Origin blog.csdn.net/qq_42794826/article/details/113816491