What if there are Chinese garbled codes in eclipse?
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!