Get the App
SLTechnology News&Howtos  ›  Development  › 

What if there are Chinese garbled codes in eclipse?

Shulou Source: shulou.com Published: 2022-06-01 04:53:49 10月04日 Update

Editor to share with you what to do when there are Chinese garbled codes in eclipse. I believe most people don't know much about it, so share this article for your reference. I hope you will gain a lot after reading this article. Let's go to know it together.

Solutions to Chinese garbled codes in eclipse

The default code for Chinese in windows is UTF-8 in GBK,linux, so when the coding format is not uniform, there will be garbled in Chinese, and English will be fine, unless there are no Chinese comments in your code.

Otherwise, you should configure the default text file encoding format of eclipse. It is recommended to unify it into UTF-8:

To set the method, click: windows- > preference

The above is all the contents of the article "what to do about Chinese garbled codes in eclipse". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Chinese garbled article code what to do content format UTF-8 not much code method most suggestions files text method more comments knowledge industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MariaDB Redmi macOS Xiaomi