Eclipse Console output log log in Chinese garbled

Source: Internet
Author: User
Tags log log

Today at work, debugging the program when suddenly found in the log log of the console, the output of Chinese is all garbled.

See this is thinking, this is the project code or log.xml encoding configuration has been changed? So I checked all over again and found that all the coding formats are unified utf-8, why?

Reasoning, suddenly remember the last time to change the work space encoding format.

A look is correct, the code is GBK, so hurriedly the code changed to Utf-8

Finally restart the Tomcat test

Sure enough, it was a ghost. So keep in mind that the work space and projects there are other configurations, it is best to maintain consistent coding format, or there will be a lot of small surprises waiting for you yo!

Eclipse Console output log log in Chinese garbled

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.