Eclipse编码MacRoman - > UTF8 [英] Eclipse Encoding MacRoman -> UTF8

查看:180
本文介绍了Eclipse编码MacRoman - > UTF8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近创建了一个项目,组织起来很好...我用我的Mac运行Eclipse。不知怎的,它存储在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?

推荐答案

你有一些详细的解释在这个 blog post David HOLT for WOLips / WOProject

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

检查您的默认首选项:


在Eclipse中,转到 Preferences> General> Workspace ,然后选择 UTF-8 作为文本文件编码

这应该为工作区中的所有资源设置编码。您现在使用默认编码创建的任何组件都应该匹配。

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.

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

右键(或Control)点击WO Package Explorer中的资源,然后选择上下文菜单底部的Properties选项。

Go到资源>文本文件编码

您应该看到从容器继承(UTF-8)如果你已经做出了这样的改变,否则将是(MacRoman)。

选择其他 - UTF-8 并应用到警告消失。

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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