Eclipse 编码 MacRoman -> UTF8

发布于 2024-08-30 00:58:43 字数 103 浏览 3 评论 0原文

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

I recently created a project, organized it and well... I used my Mac with Eclipse running. Somehow it stored everything in MacRoman. The project has to be UTF8.
Is there any easy way to handle the conversions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风蛊 2024-09-06 00:58:44

这篇博客文章 由 David HOLTWOLips/WOProject

检查您的默认首选项:

Encoding in Eclipse Preferences

在 Eclipse 中,转到 Preferences>General>Workspace 并选择 UTF-8 作为文本文件编码
这应该为工作区中的所有资源设置编码。从现在开始使用默认编码创建的任何组件都应该匹配。

更改资源(项目、文件夹或文件)的编码

右键(或 Control)单击 WO Package Explorer 中的资源,然后选择上下文菜单底部的“属性”选项。
转到资源>文本文件编码
如果您进行了上述更改,您应该会看到“继承自容器 (UTF-8)”,否则它将是 (MacRoman)。
选择其他 - UTF-8 并应用以使警告消失。

You have some detailed explanation in this blog post by David HOLT for the WOLips/WOProject.

Check your default preferences:

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文