本地化字符串文件编码
我即将开始我的应用程序的本地化。我已经做了一个测试应用程序来检查一切是否正常,令我高兴的是,它确实有效。我读到 iOS 系统的字符串文件应该是 UTF16 编码,但是我在 iPhone 4S 上测试了它,它可以使用 UTF16 或默认的 UTF8。
有人可以确认或否认我是否应该使用 UTF16 吗?
不过,部署目标是 4.1。
多谢!
I'm about to begin the localization of my App. I've done a test App to check that everything works and, to my pleasure, it does. I've read that the strings file should be UTF16 encoding for the iOS system however I tested it on my iPhone 4S and it works either with UTF16 or the default UTF8.
Could someboby confirm or deny whether I should use UTF16?
The deployment target is 4.1 though.
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 Apple 的规范,.strings 文件应该是 UTF-16。但是,编译器也会理解 UTF-8。
A .strings file is supposed to be UTF-16, according to Apple's specifications. However, the compiler will understand UTF-8 as well.