File Encoding Handling in Eclipse 3.5

I am using Eclipse 3.5 for Windows, with PDT and Subclipse plugins, with both old projects using ISO-8859-1 (Latin-1) encoding and innovations using UTF-8. I configured my workspace to use UTF-8, and I configured old projects to use Latin-1. But every time I open an old project, it uses UTF-8. With a workspace using latin-1 by default, I have the same problem with utf-8 projects edited as iso-8859-1.

My encoding choice is recorded in the .settings / org.eclipse.core.resources.prefs file, but it seems to never be read.

The only solution at the moment is to have a latin1 and utf8 workspace. Any better idea?

+3
source share
1 answer

In the project properties (right-click on the project => Properties => Resource) there is a section for encoding a text file.

Have you configured the encoding here? If not, you have two options: Inherited from Container (which should be the default workspace, in your case UTF-8) and Other, which allows you to select a specific encoding (ISO-88591) ...

I just tested this in one of my projects, closed it and reopened it, and the ISO88591 encoding is still configured.

, Eclipse, PDT. PDT -, - , ( , , ).

+4

Source: https://habr.com/ru/post/1745255/


All Articles