Get the App
SLTechnology News&Howtos  ›  Servers  › 

Solve the problem of garbled code in importing project in eclipse

Shulou Source: shulou.com Published: 2022-06-02 11:01:09 09月30日 Update

In the usual process of development, I believe everyone has the experience of importing other people's project learning or secondary development, but the problem of Chinese garbled code after importing the project also perplexes many people. when there is little content in it, it can also be solved by copying and pasting, but when there is a lot of project content, it will be a headache.

Teach you a quick way from time to time

The first imported file becomes garbled because workspace is not encoded correctly. Under linux, the default encoding is UTF-8,windows and GBK.

So how to modify the coding mode of workspace is very simple. It can be set in window----preference---workspace and can be solved by changing the code to utf-8.

Tags: Coding project garbled content method time development problem Chinese wrong headache can be passed file method process UTF-8 utf-8 learning guide Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Linux vpn Docker macOS