How to change text encoding of Localizable.strings file in Xcode 4?

前端 未结 5 1871
挽巷
挽巷 2020-12-18 23:33

I am learning how to localize the strings in my project and I am using Xcode 4.

I have generated the base Localizable.strings file, and I want to import this file,

5条回答
  •  情歌与酒
    2020-12-18 23:58

    Sometimes Xcode displays the warning, even if the file contents are UTF-16, but the file is somehow interpreted as UTF-8. iconv usually says that it can’t convert the file in this case. Converting the file in Xcode to UTF-8 and then converting it back again to UTF-16, like Edmar suggested, solves this problem. The warnings are gone.

    To make sure that nothing got broken during the conversion, recheck the whole strings file.

提交回复
热议问题