开发者

Why does Xcode make my Localized.strings file look screwed up like this?

开发者 https://www.devze.com 2023-03-28 02:41 出处:网络
When I click on the the en sub-file of that Localizeable.strings file which has a arrow to expand, I can\'t see what\'s written in that file. Screenshot:

When I click on the the en sub-file of that Localizeable.strings file which has a arrow to expand, I can't see what's written in that file. Screenshot:

Why does Xcode make my Localized.strings file look screwed up like this?

I can reveal the real fi开发者_JAVA技巧le in finder and then see the real content in TextEdit with no problems. Then I copied that from TextEdit and pasted it into Xcode, and VOILLA all looks nice. Saved, build & run, and Localization stopped working. Damn.

Any idea what's going on? I created this in Xcode, and I clearly remember that once upon a time I was able to edit the contents with no problem from inside Xcode.


The file is likely encoded in UTF-16. So, you can go to the Info for it (general pane) and set the right encoding for it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号