使用Tomcat插件控制台中文乱码解决方案(IDEA)(Day_51)

解决方案

1. File -> Settings...

image

2. 搜索 Runner (运行程序),在 ‘VM options:’ 中添加:-Dfile.encoding=GB2312

image

注:GB2312:汉字编码字符集

最后,我们来测试一下

image

原文地址:https://www.cnblogs.com/papercy/p/14744523.html