問題:控制臺tomcat日志亂碼,網站頁面亂碼
配置:idea2019.2、win10、tomcat8.5
字符集:
idea2019.2 File Encoding UTF-8
win10 系統默認GBK
tomcat8.5 UTF-8
控制臺亂碼
1、將tomcat目錄下conf\logging.properties中的java.util.logging.ConsoleHandler.encoding = UTF-8注釋掉解決了控制臺亂碼
網站頁面亂碼
1、jsp頁面亂碼:<%@ page pageEncoding="utf-8"%>
2、html頁面亂碼:<meta charset="utf-8">
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/186218.html
標籤:Java
