Xcode 不断猜测和解释错误的编码
我使用的是 Xcode 4.0.2,最新版本的 Xcode。我的所有项目或独立源代码均采用 UTF-8 编码。但是当我打开一些源文件(C/C++/Objective C)时,所有文本都以 Mac OS 罗马编码进行解释,我不知道为什么。我尝试通过卸载 Xcode 来删除并删除所有 Xcode 文件。所以重新安装并没有帮助。所有源代码均以 Mac OS 罗马编码打开。在 Xcode 设置中,我有默认编码 UTF-8(但我认为这是针对新文件的)。我还尝试重新安装 Xcode 可以用来检测编码的 libiconv。
我不知道有什么可能导致这种情况。我没有对我的系统、程序或数据进行任何更改,我确信,一周前我没有遇到这个问题。
有人吗?
谢谢, 马丁
I am using Xcode 4.0.2, the latest release of Xcode. All my projects or standelone source codes are in UTF-8 encoding. But when I open some source file (C/C++/Objective C), all text is interpreted in Mac OS Roman encoding and I don't know why. I've tried remove and delete all Xcode files by uninstalling Xcode. So reinstalling doesn't help. All source codes are opened in Mac OS Roman encoding. In Xcode settings I have default encoding UTF-8 (but that is for new files I think). Also I've tried reinstall libiconv that Xcode may use for detecting encodings.
I don't know about anything that may caused this. I didn't make any changes to my system, programs or data and I am sure, this I didn't have this problem one week ago.
Anyone?
Thanks,
Martin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您打开右侧视图(右上方视图按钮),则会有一些设置。
尝试在该文件的“文本设置”下设置编码。
如果重新解释不起作用,您可能需要再次复制文本。
If you open up the right side view (top right view buttons) there are some settings.
Try setting the encoding there under 'text settings' for that file.
You may need to copy in your text again if the reinterpretation doesn't work.