gpt4 book ai didi

Xcode 警告 : The specified input encoding is Unicode (UTF-8), 但文件内容似乎是 Unicode (UTF-16);视为 Unicode (UTF-16)

转载 作者:行者123 更新时间:2023-12-02 13:46:10 25 4
gpt4 key购买 nike

我使用 genstrings 命令创建 .strings 文件。该命令的输出文件使用 UTF-16 编码,但是当我将生成的 .strings 文件添加到我的项目中然后 bild 时,Xcode 显示警告:

The specified input encoding is Unicode (UTF-8), but file contents appear to be Unicode (UTF-16); treating as Unicode (UTF-16).

我在textEdit.app中打开.strings文件并使用UTF-16重新保存它,但这没有效果。

急于解决这个问题?谢谢!

最佳答案

我无法重现该问题,但最简单的解决方案可能是在 Xcode 中选择字符串文件,并在文件检查器中将“文本编码”设置为“UTF-16”。

enter image description here

关于Xcode 警告 : The specified input encoding is Unicode (UTF-8), 但文件内容似乎是 Unicode (UTF-16);视为 Unicode (UTF-16),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16504272/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com