Eclipse 控制台日志中的垃圾
我的 Eclipse 控制台中的日志显示有问题。启动和停止 weblogic 服务器时显示的日文字符是垃圾。但是应用程序写入的日志没有问题。我正在使用 log4j。 Log4j.properties
# Log4JLogger\u521d\u671f\u5316\u30d1\u30e9\u30e1\u30bf\u8a2d\u5b9a
# \u30ed\u30b0\u30ec\u30d9\u30eb\u3001\u30a2\u30da\u30f3\u30c0\u540d\u8a2d\u5b9a
log4j.rootCategory=INFO, consoleLog, consolefileLog
# \u30ed\u30b0\u30ec\u30d9\u30eb\u306e\u8a73\u7d30\u8a2d\u5b9a
log4j.category.jp.terasoluna=DEBUG
log4j.category.org.springframework=INFO
log4j.category.org.apache.struts=INFO
log4j.category.com.ibatis=DEBUG
log4j.category.java.sql=DEBUG
# This is the category for operations Logger class
# Do not change unless you know exactly what you are doing
#log4j.category.jp.co.anicom.fw.common.log.Logger=DEBUG, fileLog
log4j.category.opLog=DEBUG, fileLog
# \u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30da\u30f3\u30c0\u8a2d\u5b9a
log4j.appender.consoleLog=org.apache.log4j.ConsoleAppender
log4j.appender.consoleLog.Target = System.out
log4j.appender.consoleLog.layout = org.apache.log4j.PatternLayout
log4j.appender.consoleLog.layout.ConversionPattern=[%d{yyyy/MM/dd HH:mm:ss}][%p][%C{1}] %m%n
#log4j.appender.consoleLog.encoding=UTF-8
log4j.appender.consolefileLog=org.apache.log4j.FileAppender
log4j.appender.consolefileLog.File = anicomConsole.log
log4j.appender.consolefileLog.layout = org.apache.log4j.PatternLayout
log4j.appender.consolefileLog.layout.ConversionPattern=[%d] %m%n
log4j.appender.consolefileLog.encoding=UTF-8
# \u30d5\u30a1\u30a4\u30eb\u30a2\u30da\u30f3\u30c0\u8a2d\u5b9a
log4j.appender.fileLog=org.apache.log4j.FileAppender
log4j.appender.fileLog.File = anicomOp.log
log4j.appender.fileLog.layout = org.apache.log4j.PatternLayout
log4j.appender.fileLog.layout.ConversionPattern=[%d] %m%n
log4j.appender.fileLog.encoding=UTF-8
# Global logging configuration
log4j.logger.com.ibatis=DEBUG
# shows SQL of prepared statements
log4j.logger.java.sql=DEBUG
log4j.logger.java.sql.Connection=DEBUG
# shows parameters inserted into prepared statements
log4j.logger.java.sql.PreparedStatement=DEBUG
# shows query results
log4j.logger.java.sql.ResultSet=DEBUG
log4j.logger.java.sql.Statement=DEBUG
================================================= ====================================
我的 eclipse 控制台中也有这些。如您所见,它显示垃圾
CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1031\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C :\Oracle\MIDDLE~1\utils\config\10.3.1.0\config-launch.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~ 1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.1.0.jar;C:\Oracle\MIDDLE~1\WLSERV~ 1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib /ant-contrib.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl 。罐 。 路径=C:\Oracle\MIDDLE~1\patch_wls1031\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV ~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\ JDK160~1\bin;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\app\em.alcuizar\product\11.1.0\client_2\bin ;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\app\em.alcuizar\product\11.1.0\db_1\bin;C:\product\11.1.0\client_1;C:\WINDOWS \system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jre6\bin;D:\Data\Installers\Java\oepe- ganymede-all-in-one-11.1.1.3.0.200910091510-win32\eclipse\plugins\org.apache.ant_1.7.0.v200803061910\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\ Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8 。
- 用户名和 *
- 要启动 WebLogic Server,请使用分配给管理员级别用户的 密码。对于
- WebLogic Server *
- 服务器管理,请使用位于 http:\hostname:port\console 的 控制台 *
使用 Java 版本启动 weblogic: 监听地址为 8453 的传输 dt_socket java版本“1.6.0_11” Java(TM) SE 运行时环境(版本 1.6.0_11-b03) Java HotSpot(TM) 客户端 VM(版本 11.0-b16,混合模式) 使用以下行启动 WLS: C:\ Oracle \ MIDDLE〜1 \ JDK160〜1 \ bin \ java -client -Xdebug -Xnoagent -Xrunjdwp:传输= dt_socket,地址= 8453,服务器= y,挂起= n -Djava.compiler = NONE -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic。策略 -Xverify:无 -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker。 .. -ea:com.bea.sbconsole... -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server - Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C: \Oracle\MIDDLE~1\patch_wls1031\profiles\default\sysext_manifest_classpath weblogic.Server 监听地址为 8453 的传输 dt_socket <2010/11/03 15��12��30�b SGT> <���̊g���q�f�B���N�g���̓��e��N���X�p�X�̌��ɒlj������� ��� : C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar ;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko。 jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ja .jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\ testclient_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N \tuxedocontrol_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar;C:\Oracle\Middleware\wlserver_10.3\ L10N\workshop_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW.jar> <2010/11/03 15��12��30�b SGT> <2010/11/03 15��12��31�b SGT> <�[�W����: WebLogic Server 10.3.1.0 Wed Jun 10 22:24:41 MDT 2009 1227385 > <2010/11/03 15��12��33�b SGT> <�T�[�o����开始�ɕω����������B> <2010/11/03 15��12��33�b SGT> <�����`���[�j���O �X�b�h �v�[��������������B> <2010/11/03 15��12��33�b SGT> <�O�t�@�C�� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\AdminServer.log�̓��[�e�[�V��� ������B��������~�����ꍇ�́A���O �t�@�C�����ăI�[�v���� ���������B����́AWindows ������ꕔ�̃v���b�g�t�H�[����ŋN����\������������ ��B> <2010/11/03 15��12��33�b SGT> <�O�t�@�C���� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\AdminServer.log01940�[�e�[�V ��������B���O ���b�Z�[�W�͈��� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\日志\AdminServer.log �ɋL�^������B> <2010/11/03 15��12��33�b SGT> <�T�[�o �O �t�@�C�� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\AdminServer.log ��J����� ����B���ׂẴT�[�o�T�C�h ���O �C�x���g�͂��̃t�@�C���ɏ������ B> <2010/11/03 15��12��38�b SGT> <�Z�L�����e�B�̓Z�L�����e�B ������ myrealm ����g�p������������ ⑨B> <2010/11/03 15��12��40�b SGT> <�O�t�@�C�� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\access.log�̓��[�e�[�V��� ������B��������~�����ꍇ�́A���O �t�@�C�����ăI�[�v���� ���������B����́AWindows ������ꕔ�̃v���b�g�t�H�[����ŋN����\������������ ��B> <2010/11/03 15��12��40�b SGT> <�O�t�@�C���� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\access.log01446���[�e�[�V ��������B���O ���b�Z�[�W�͈��� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\日志\access.log �ɋL�^������B>
I have a problem with logs display in my eclipse console. The japanese characters displayed in starting and stopping the weblogic server are garbage. There is no problem however with the logs written by the application. I am using log4j.
Log4j.properties
# Log4JLogger\u521d\u671f\u5316\u30d1\u30e9\u30e1\u30bf\u8a2d\u5b9a
# \u30ed\u30b0\u30ec\u30d9\u30eb\u3001\u30a2\u30da\u30f3\u30c0\u540d\u8a2d\u5b9a
log4j.rootCategory=INFO, consoleLog, consolefileLog
# \u30ed\u30b0\u30ec\u30d9\u30eb\u306e\u8a73\u7d30\u8a2d\u5b9a
log4j.category.jp.terasoluna=DEBUG
log4j.category.org.springframework=INFO
log4j.category.org.apache.struts=INFO
log4j.category.com.ibatis=DEBUG
log4j.category.java.sql=DEBUG
# This is the category for operations Logger class
# Do not change unless you know exactly what you are doing
#log4j.category.jp.co.anicom.fw.common.log.Logger=DEBUG, fileLog
log4j.category.opLog=DEBUG, fileLog
# \u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30da\u30f3\u30c0\u8a2d\u5b9a
log4j.appender.consoleLog=org.apache.log4j.ConsoleAppender
log4j.appender.consoleLog.Target = System.out
log4j.appender.consoleLog.layout = org.apache.log4j.PatternLayout
log4j.appender.consoleLog.layout.ConversionPattern=[%d{yyyy/MM/dd HH:mm:ss}][%p][%C{1}] %m%n
#log4j.appender.consoleLog.encoding=UTF-8
log4j.appender.consolefileLog=org.apache.log4j.FileAppender
log4j.appender.consolefileLog.File = anicomConsole.log
log4j.appender.consolefileLog.layout = org.apache.log4j.PatternLayout
log4j.appender.consolefileLog.layout.ConversionPattern=[%d] %m%n
log4j.appender.consolefileLog.encoding=UTF-8
# \u30d5\u30a1\u30a4\u30eb\u30a2\u30da\u30f3\u30c0\u8a2d\u5b9a
log4j.appender.fileLog=org.apache.log4j.FileAppender
log4j.appender.fileLog.File = anicomOp.log
log4j.appender.fileLog.layout = org.apache.log4j.PatternLayout
log4j.appender.fileLog.layout.ConversionPattern=[%d] %m%n
log4j.appender.fileLog.encoding=UTF-8
# Global logging configuration
log4j.logger.com.ibatis=DEBUG
# shows SQL of prepared statements
log4j.logger.java.sql=DEBUG
log4j.logger.java.sql.Connection=DEBUG
# shows parameters inserted into prepared statements
log4j.logger.java.sql.PreparedStatement=DEBUG
# shows query results
log4j.logger.java.sql.ResultSet=DEBUG
log4j.logger.java.sql.Statement=DEBUG
=================================================================================
I also have these in my eclipse console. As you can see it displays garbage
CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1031\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\utils\config\10.3.1.0\config-launch.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.1.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
.
PATH=C:\Oracle\MIDDLE~1\patch_wls1031\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\app\em.alcuizar\product\11.1.0\client_2\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\app\em.alcuizar\product\11.1.0\db_1\bin;C:\product\11.1.0\client_1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jre6\bin;D:\Data\Installers\Java\oepe-ganymede-all-in-one-11.1.1.3.0.200910091510-win32\eclipse\plugins\org.apache.ant_1.7.0.v200803061910\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
.
- To start WebLogic Server, use a username and *
- password assigned to an admin-level user. For *
- server administration, use the WebLogic Server *
- console at http:\hostname:port\console *
starting weblogic with Java version:
Listening for transport dt_socket at address: 8453
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode)
Starting WLS with line:
C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1031\profiles\default\sysext_manifest_classpath weblogic.Server
Listening for transport dt_socket at address: 8453
<2010/11/03 15��12��30�b SGT> <���̊g���q�f�B���N�g���̓��e���N���X�p�X�̌��ɒlj�����܂��� :
C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW.jar>
<2010/11/03 15��12��30�b SGT>
<2010/11/03 15��12��31�b SGT> <�o�[�W����: WebLogic Server 10.3.1.0 Wed Jun 10 22:24:41 MDT 2009 1227385 >
<2010/11/03 15��12��33�b SGT> <�T�[�o��Ԃ� STARTING �ɕω����܂����B>
<2010/11/03 15��12��33�b SGT> <�����`���[�j���O �X���b�h �v�[���������Ă��܂��B>
<2010/11/03 15��12��33�b SGT> <���O �t�@�C�� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\AdminServer.log �̓��[�e�[�V��������܂��B��������~�����ꍇ�́A���O �t�@�C�����ăI�[�v�����Ă��������B����́AWindows �ȂLjꕔ�̃v���b�g�t�H�[���ŋN����\��������܂��B>
<2010/11/03 15��12��33�b SGT> <���O �t�@�C���� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\AdminServer.log01940 �܂Ń��[�e�[�V��������܂����B���O ���b�Z�[�W�͈��� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\AdminServer.log �ɋL�^����܂��B>
<2010/11/03 15��12��33�b SGT> <�T�[�o ���O �t�@�C�� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\AdminServer.log ���J���܂����B���ׂẴT�[�o�T�C�h ���O �C�x���g�͂��̃t�@�C���ɏ������܂�܂��B>
<2010/11/03 15��12��38�b SGT> <�Z�L�����e�B�̓Z�L�����e�B ������ myrealm ���g�p���ď����Ă��܂��B>
<2010/11/03 15��12��40�b SGT> <���O �t�@�C�� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\access.log �̓��[�e�[�V��������܂��B��������~�����ꍇ�́A���O �t�@�C�����ăI�[�v�����Ă��������B����́AWindows �ȂLjꕔ�̃v���b�g�t�H�[���ŋN����\��������܂��B>
<2010/11/03 15��12��40�b SGT> <���O �t�@�C���� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\access.log01446 �܂Ń��[�e�[�V��������܂����B���O ���b�Z�[�W�͈��� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\access.log �ɋL�^����܂��B>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除非 Eclipse 的控制台视图使用具有必要字形的适当字体,否则日语字符可能会出现损坏,因为这是大多数应用程序的行为 - 字体中不存在的 Unicode 字符的任何字形将显示为一个问号。
可能的解决方案之一是将调试控制台中使用的字体更改为支持大多数 Unicode 字符(尤其是 ISO-8859-1 和平假名或片假名字符集中的字符)显示的字体。在 Eclipse 中,可以从 Window -> 进行配置。首选项->一般->外观->颜色和字体,以及通过更改调试控制台(或终端控制台,我不确定是哪个)的字体。
Unless the Console view of Eclipse utilizes an appropriate font with the necessary glyphs, it is possible that the Japanese characters appear mangled, for that is the behavior of most applications - any glyph for a Unicode character that is absent in the font, will appear as a question mark.
One of the possible solutions is to change the font utilized in the debug console, to one that supports display of most Unicode characters, especially characters in the ISO-8859-1 and the Hiragana or Katagana character sets. In Eclipse, this can be configured from Window -> Preferences -> General -> Apperance -> Colors and Fonts, and by changing the font of the Debug Console (or the Terminal console, I'm not sure which).
转到窗口 ->首选项->一般->工作区并将底部的“文本文件编码”部分更改为其他:“UTF-8”,将“新文本文件行分隔符”更改为其他:“Unix”
Go to Window -> Preferences -> General -> Workspace and change at the bottom "Text file encoding" section to Other: "UTF-8" and "New text file line delimiter" to Other: "Unix"