如何使用拉丁字母在Eclipse? [英] How to use Latin letters in Eclipse?
问题描述
我在ProgressDialog一些文字,以及一些其他地方后,我救它,我的手机上运行它,它工作正常。但只要我重新启动Eclipse我得到的情况类似下面的截图:
I have some text in my ProgressDialog, and some other places and after I save it and run it on my phone it works fine. But as soon as I restart Eclipse I get the situation like on the screenshot below:
如何使Eclipse的记住它喜欢它假设是?
How to make Eclipse remember it like it suppose to be?
推荐答案
右键点击您的项目,并选择属性。点击资源,并更改文本文件编码成UTF-8还是其他什么东西,将支持您要使用的字符。
Right click on your project and select Properties. Click on Resource, and change the Text file encoding to UTF-8 or something else that will support the characters you want to use.
要更改默认编码设置.java文件(或其他文件类型),去窗口> preferences>内容类型。在文本中,选择Java源文件。默认编码设置为你想要的。
To change the default encoding setting for .java files (or other file types), go to Window > Preferences > Content Types. Under Text, select Java Source File. Set the Default Encoding to what you want.
这篇关于如何使用拉丁字母在Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!