简体   繁体   English

iOS中文本地化字符串

[英]iOS Localized String in Chinese

I'm trying to put chinese characters in a localized string file ( Localizable.strings ) but xcode can't compile it, it says it is in the wrong format. 我试图将汉字放在本地化的字符串文件(Localizable.strings)中,但是xcode无法编译它,它说它的格式错误。 If I remove the chinese characters it compiles fine, what should I do? 如果删除汉字,它可以很好地编译,该怎么办?

Thanks. 谢谢。

It sounds like you're trying to put 16 bit characters into a file designed for 8 bit characters. 听起来您正在尝试将16位字符放入为8位字符设计的文件中。 Check the encoding on your file and make sure it's capable of preserving the proper character set(s) you need. 检查文件上的编码,并确保其能够保留所需的正确字符集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM