Chinese garbled output Eclipse console

Today do S2SH integrated examples all parts of the settings are set to become UTF-8, including tomcat configuration file server.xml, web.xml has increased by filters, struts2 of i18N constants, etc., but in the console and Action printed or distortion. Find something wrong, I'll just print in Action, some Chinese, print out the results is garbled, I suspect that the eclipse of the problem, and then to a search online, solved by the following method:
1, first in the Run-Run Configration-Tomcat-Arguments, add -Dfile.encoding = UTF-8 in the VM arguments, as shown:





2, Common tab page, select UTF-8 as shown in the Console encoding:



Then, the execution of the program, the console print out the Chinese.


If you want to run in Debug mode, the same method to modify Debug Configrations

Intelligent Recommendation

Eclipse console output of Chinese garbage problem (output System.out.println statements in the Chinese normal, but the log. Chinese output is garbled)

Background: When debugging code, find log.debug information in Chinese have become garbled, further observed that, in Chinese System.out.println output is normal! Internet search a lot of information ...

Eclipse+tomcat, console Chinese garbled

1. First, check if the encoding of the JSP page declaration is correct, and the correct example (note the place marked red): 2. After confirming that there is no problem in step 1, next check the proj...

IDEA console output Chinese garbled

The first four steps are changed, restart the idea should be fine. If not, then the fifth step operation. 1: Open intelliidea installation path, and locate the file idea.exe.vmoption idea64.exe.vmopti...

tomcat console output Chinese garbled

Question: tomcat run the console output appear in Chinese garbage problem Reason: windows set as the default encoding GBK, open cmd default encoding may not utf-8, inconsistent with the encoding syste...

Idea output console Chinese garbled

Why can't 80% of programmers be architects? >>>   Solve after setting here In the Startup/Connection panel of the run/debug configuration dialog box, Check Pass environment variable...

More Recommendation

Garbled Chinese output in Tomcat console

forward from:Tomcat console output Chinese garbled problem 1. If you encounter Chinese garbled characters in the IDEA local Tomcat console (the following is the correct display after modification) sol...

SpringBoot Console output Chinese garbled

Also in Chinese, I also tried several ways, as long as I add the following code in the Application.properties configuration file, I see that someone else is the beginning of Spring.http, but the copy ...

WebSTORM console output Chinese garbled

// 32 bit default path C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.1.3\bIN // 64 bit default path C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 14.1.3\bin Idea.exe...

Jenkins console console Chinese output garbled solution

After the successful construction, the console output garbled, Baidu search for blogs, all the same, stepped on a pit, after setting, you needRestartWill take effect. The problem is as follows: Soluti...

Chinese garbled characters on the RF console and output console

Chinese garbled characters on the RF console and output console 1. The console is garbled Modify the python directory C:\Python\Python37\Lib\site-packages\robotide\contrib\testrunner Next line 565 in ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top