4
【笔记】解决Windows下Tomcat控制台乱码
source link: https://feiju12138.github.io/2022/09/29/%E8%A7%A3%E5%86%B3Windows%E4%B8%8BTomcat%E6%8E%A7%E5%88%B6%E5%8F%B0%E4%B9%B1%E7%A0%81/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
【笔记】解决Windows下Tomcat控制台乱码
2022-09-29
2
解决Windows下Tomcat控制台乱码
- Tomcat默认编码为UTF-8,而Windows控制台默认编码为GBK
- 修改日志配置文件第47行,将Tomcat的日志输出编码改为GBK
tomcat/conf/logging.properties
java.util.logging.ConsoleHandler.encoding = GBK
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK