如何更改 Eclipse 中的默认文本文件编码? [英] How to change default text file encoding in 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 my default language in Windows is Polish 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...
我正在使用 Eclipse 的Helios"版本,并在必要时将其与 pydev 一起使用.
I'm using 'Helios' release of the eclipse and use it with pydev if that matters.
推荐答案
Window -> Preferences -> General -> Workspace : Text file encoding
Window -> Preferences -> General -> Workspace : Text file encoding
这篇关于如何更改 Eclipse 中的默认文本文件编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!