How to solve Chinese garbled characters output on the console when Weblogic is used
1. Find the Weblogic installation directory, the domain configured for the current project
2. Find the startweblogic. CMD file.
3. open the file, add the following code on "call" % domain_home % \ bin \ startweblogic. cmd "% *", mainly to set the UTF-8.
@ Echo off @ REM warning: this file is created by the Configuration Wizard. @ REM any changes to this script may be lost when adding extensions to this configuration. setlocalset domain_home = D: \ bea10 \ user_projects \ Domains \ test_donainset debugflag = true @ REM set debug_port = 8888 set java_options = % java_options %-dfile. encoding = utf-8call "% domain_home % \ bin \ startweblogic. cmd "% * endlocal
This is the sentence "set java_options = % java_options %-dfile. Encoding = UTF-8 ".
4. Save the file and restart the service.