Been troubled for a long time! The encoding of java files is not uniform, and an error occurs when the project is run? Don’t worry, PHP editor Xigua has some advice for you! This tutorial will introduce in detail a convenient method of combining graphics and text to help you batch modify the encoding of java files, easily solve encoding problems, and help your project run smoothly. Click now to view the details and save your code!
Open the eclipse tool, select windows,
right-click [windows], and then click [Preferences] to enter the following page:
Select [General]-》[Content Types],
Click [Content Types], the following picture will appear:
Click in sequence [Text]-[Java Source File], the following picture will appear
Fill in the encoding you need in the Default encoding, here is an example [utf-8], click [Update] Modify all files to the encoding you specify
The above is the detailed content of How to batch modify the graphic and text encoding of java files in eclipse. For more information, please follow other related articles on the PHP Chinese website!