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

社会主义新天地 提交于 2019-12-10 01:08:45

问题


I create the .strings file by using genstrings command. Output file of this command encoded with UTF-16, but when i add generated .strings file to my project and then bild, Xcode show warning:

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

I open .strings file in textEdit.app and resave it with UTF-16, but this haven't effect.

Hot to fix this? Thaks!


回答1:


I could not reproduce the problem, but the easiest solution is probably to select the strings file in Xcode and set the "Text Encoding" to "UTF-16" in the File inspector.



来源:https://stackoverflow.com/questions/16504272/xcode-warning-the-specified-input-encoding-is-unicode-utf-8-but-file-content

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!