Localizable.strings - The data couldn’t be read because it isn’t in the correct format

前端 未结 18 1194
广开言路
广开言路 2021-01-30 06:20

If I copy something from textedit or web and paste it to localizable file it shows this compilation error. If I type those in localizable file it does not show any error. I am a

18条回答
  •  醉话见心
    2021-01-30 06:53

    I just had this experience:

    • external translator doing the work inside Visual Code or other text editors
    • Files not working and getting an error like this one: ( testing with plutil -lint )

      Localizable.strings: Unexpected character " at line 1 CardRatingView.strings: Unexpected character / at line 2

    I just created a new file within XCode and copy pasted all the file content and suddenly everything was working properly.

    I guess something can go wrong / corrupting the file itself while working with other text editors.

提交回复
热议问题