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

前端 未结 18 1190
广开言路
广开言路 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:52

    I was having the similar issue where i didn't escape the string value with backslash \ for one of my string's value.

    Before:

    "INVALID_NUMBER" = "It seems you're entering invalid number. Number should starts with "0" or "7"";

    Updated:

    "INVALID_NUMBER" = "It seems you're entering invalid number. Number should starts with \"0\" or \"7\"";

    Backslashes are required when you want to display the quotation marks "

    Please, have a quick look at here for How to include Quotation mark in strings

提交回复
热议问题