简体   繁体   中英

Character corruption in the Google Cloud Tools for Eclipse Console

When debugging Google App Engine Standard Java Project, I currently use the latest Eclipse and SDK. System.out.println ("中中中"); is executed, Why is that, double-byte character set Chinese characters garbled on the console.

Characters are normally displayed without garbled characters on the console when executing ordinary Java Project, but on the Google App Engine Standard Java Project Console, " " is displayed and character corruption will appear . I already changed Resource Text file encoding is definitely set to UTF-8.

Does anyone know something about this characters setting in App Engine Eclipse? Thank you.

Same problem too.

There's something like

�E�� 03, 2018 3:38:32 �W�� com.google.appengine.tools.development.ApiProxyLocalImpl log

or

Caused by: java.lang.UnsatisfiedLinkError: ??@??��'

in my console.

I'm using Eclipse Photon/appengine.api.sdk 1.9.64

Have change 'Text file encoding' to 'UTF-8' and add '-Dfile.encoding=UTF-8' in eclipse.ini.

This problem occurs on both Win7 and Win10 system.

You can solve the problem by adding the following to the "WEB-INF/logging.properties":

 handlers=java.util.logging.ConsoleHandler
 java.util.logging.ConsoleHandler.encoding=UTF-8

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM