Can I install additional encodings in eclipse?

让人想犯罪 __ 提交于 2019-12-23 05:13:15

问题


I have the issue, that I need to use a subversion repository that was created (and is still in use) under windows. Thus the default encoding is CP-1252.

Now I want to checkout this repository in linux and alter files there using eclipse. I do not want to reencode the whole file using iconv to UTF-8 if possible as I do not know how good the programs under windows will behave.

My first idea was to set the project encoding to CP-1252. Under my installation (Kepler under linux) of eclipse there is no option CP-125x for the encoding. Only some UTF-* and ISO-8859-1 is selectable.

Is there a way to install further encodings in eclipse?


回答1:


The 'Text file encoding' field on the 'Preferences > General > Workspace' page only shows the most common encodings in the drop-down. However you can type in other encodings in to field. Any encoding that is supported by the Java Charset class is accepted.

The Windows 'CP-125x' encodings are called 'windows-125x' by Charset.

The same applies to file encodings shown in the file 'Properties > Resource' page.



来源:https://stackoverflow.com/questions/24954743/can-i-install-additional-encodings-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!