如何在Eclipse中更改默认的文本文件编码? [英] How to change default text file encoding in Eclipse?

查看:129
本文介绍了如何在Eclipse中更改默认的文本文件编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我向项目添加一个新的html文件(或其他文本文件)时,其编码设置为Cp1250。我不知道为什么,我想这可能是因为Windows中的输入语言设置为波兰语(这对我来说是正确的,因为它是我的母语,我不想改变它)。无论如何,Eclipse说Cp1250是一个默认编码,每次添加任何东西时,都必须手动将其更改为UTF-8。

Whenever I add a new html file (or other text file) to the project its encoding is set to Cp1250. I am not sure why, I guess this is probably because input language in Windows is set to Polish (which is correct for me as it's my native language and I don't want to change it). Anyway, Eclipse says that Cp1250 is a 'default' encoding and I have to manually change it to UTF-8 each time I add anything.

那么在哪里可以更改默认编码为UTF-8?我通过右键单击整个项目设置了编码,但没有帮助。我找不到任何选项。这是非常烦人的...

So where can I change the default encoding to UTF-8? I've set the encoding by right-clicking on whole project but it didn't help. I can't find anything in options. It's so annoying...

我正在使用Helios版本的eclipse,并将其与pydev配合使用。

I'm using 'Helios' release of the eclipse and use it with pydev if that matters.

推荐答案

窗口 - >首选项 - >常规 - >工作区:文本文件编码

Window -> Preferences -> General -> Workspace : Text file encoding

这篇关于如何在Eclipse中更改默认的文本文件编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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