Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if the Eclipse project is moved to the garbled code under Linux under Windows

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

This article mainly shows you "what to do when the Eclipse project under Windows is moved to Linux", which is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn how to move the Eclipse project under Windows to Linux.

Have you ever encountered the problem of using Eclipse to check the program code written under Windows under the Linux system, but the code is garbled? Don't worry, the following article will tell you how to solve it.

We all know that the default encoding method under Windows is gbk, while the encoding method under Linux is utf-8,eclipse, which is also utf-8 under Linux, so there is garbled. The solution is to change the encoding in eclipse to gbk.

Solution:

Eclipse- > Window- > Preferences- > General- > Content Types, select Java Source File on the right, and then write gbk,update in the defaut encoding below.

If this is not possible, you can change the property of the project to gbk:

These are all the contents of this article, "how to move the Eclipse project under Windows to Linux?" 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: Garbled content method coding engineering what to do articles methods utf-8 learning help worry next no code right properties articles easy to understand more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MySQL Apple Shulou Information Shulou Tech Info