Eclipse 编码 MacRoman -> UTF8

标签 eclipse encoding editor

我最近创建了一个项目,组织它并且做得很好...我使用运行 Eclipse 的 Mac。不知怎的,它把所有的东西都存储在MacRoman中。该项目必须是 UTF8。 有没有简单的方法来处理转换?

最佳答案

你在这个blog post中有一些详细的解释通过 David HOLT对于 WOLips/WOProject .

检查您的默认首选项:

Encoding in Eclipse preferences

In Eclipse, go to Preferences>General>Workspace and select UTF-8 as the Text File Encoding.
This should set the encoding for all the resources in your workspace. Any components you create from now on using the default encoding should all match.

Change the encoding for a resource (project, folder or file)

Right (or Control) click on the resource in the WO Package Explorer and select the Properties option at the bottom of the contextual menu.
Go to Resource>Text File Encoding.
You should see "Inherited from container (UTF-8)" if you've made the change above, otherwise it will be (MacRoman).
Select Other - UTF-8 and Apply to make the warning go away.

关于Eclipse 编码 MacRoman -> UTF8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2707986/

相关文章:

java - 在Java中播放声音文件

eclipse - 使用 build-helper-maven 附加源目录

python字节(some_string, 'UTF-8')和str(some_string, 'UTF-8')

editor - 查看时折叠 YAML 的选项?

javascript - Ace Editor - 只读变量

java - 在 Eclipse、VS 或其他中搜索作业?

eclipse - 在 Spring webapp 中处理 MaxUploadSizeExceededException

Java 读取包含来自不同语言的字符串的文件

php - 创建人类可读的 URL 搜索字符串

vim - 如何在多行代码中插入多行代码?