Eclipse sets the document to utf-8 encoding format

1. Windows->Preferences...Open the "Preferences" dialog box, navigate the tree on the left, navigate to general->Workspace, select Text file encoding on the right, select Other, change it to UTF-8, and then create a new project and its properties The Text file encoding in the dialog box is UTF-8.

2. Windows->Preferences... Open the "Preferences" dialog box, navigate the tree on the left, navigate to general->Content Types, the Context Types tree on the right, click on each sub-item in Text, and enter in "UTF-8", click update!

Other files related to java application development, such as properties, XML, etc., have been specified by Eclipse by default, which are ISO8859-1 and UTF-8 respectively. If you really need to change the encoding format during development, you can specify it here.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326359798&siteId=291194637