我可以在eclipse中安装其他编码吗? [英] Can I install additional encodings in eclipse?

查看:202
本文介绍了我可以在eclipse中安装其他编码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个问题,我需要使用在Windows下创建(并仍在使用中)的subversion存储库。因此,默认编码是 CP-1252



现在我想在linux中检出这个存储库并在其中修改文件使用eclipse。如果可能,我不想使用 iconv 重新编码整个文件到 UTF-8 ,因为我不知道如何



我的第一个想法是将项目编码设置为 CP-1252 。在我的安装(开普勒在linux下)的eclipse下,编码没有选项 CP-125x



有没有办法在eclipse中安装进一步的编码?

解决方案

文本文件编码 首选项>常规>工作区页面仅显示下拉列表中最常见的编码。但是,您可以在字段中键入其他编码。任何由Java Charset 类支持的编码被接受。



Windows的CP-125x编码是 Charset

同样适用于文件属性>资源页面。


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?

解决方案

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.

这篇关于我可以在eclipse中安装其他编码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆