Localizable.strings-由于数据格式不正确,因此无法读取 [英] Localizable.strings - The data couldn’t be read because it isn’t in the correct format

查看:419
本文介绍了Localizable.strings-由于数据格式不正确,因此无法读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我从textedit或web复制了一些内容并将其粘贴到可本地化的文件中,则会显示此编译错误.如果我在可本地化的文件中键入这些内容,则不会显示任何错误.我向您保证我使用正确的格式和';'在文件中.

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 assuring you that I using the correct format and ';' in the file.

"New" = "New";
"In Progress" = "In Progress";
"Waiting" = "Waiting";
"Closed" = "Closed";

推荐答案

似乎SVN与此文件有关.因为它认为它是一个二进制文件.它在每个字符之间插入了许多不可打印的字符.我仍然找不到合适的解决方案.只需在生产PC上更改Localizable.string文件即可避免出现任何问题.

It seems like SVN is having some issue with this file. As it consider it to be a binary file. It is inserting a lot of non printable characters between each characters. I still couldn't find a proper solution. Just changing the Localizable.string files from production PC for avoiding any issue with it.

更新:将SVN客户端(smartSVN)更新到最新版本解决了该问题.我的一位同事似乎正在使用旧版本.当他将更改提交到可本地化的文件时,它导致了错误.

Update: Updating the SVN client (smartSVN) to the latest version solved the issue. It seems one of my colleague was using a older version. When he commited the change to localizable file it caused the error.

这篇关于Localizable.strings-由于数据格式不正确,因此无法读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆