如何修复 iTunes Feed 上的 Unicode 字符问题
我正在尝试使用其授权的平面提要从 Apple App Store 中提取应用程序。然而,我在处理编码问题时遇到了困难。以下是一些示例:
一个名为的日语应用程序
ホームページ用和英辞典
显示为
ㄧㄧㄧㄧ
不仅如此,即使是常用的特殊字符,如“(撇号)”、“(引号)”也会以“”、“”等字符显示
有人可以帮我解决这个问题吗?
编辑添加:我正在研究 PHP
I am trying to pull applications from the Apple App Store using their authorised flat feed. However, I am having a tough time dealing with the encoding issues. Here are some examples :
A Japanese app titled
ホームページ用和英辞典
is displayed as
ホームページ用和英辞å
Not just that, even commonly used special characters like '(apostrophe), “(quote) are displayed with characters like ’ and “.
Can someone please help me with how this issue can be sorted out?
Edited to Add : I am working on PHP
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
提供的提要采用什么字符集?您声明文档采用什么字符集?对于刚开始发送 ISO-8859-1 并阅读 UTF-8 提要的人来说,这是很常见的。为了简单起见,您会希望这两个匹配。
在处理这些问题时,这两篇文章也可能会引起您的兴趣
What character set is the feed provided in, and what character set are you declaring your document to be? It's pretty common for people starting out to be sending ISO-8859-1, while reading in a UTF-8 feed. You'll want those two to match for simplicity.
These two articles may also be of interest while dealing with these issues
看起来您要么没有保留原始字符编码,要么正在将 Unicode 输出到非 Unicode 编码流中。
It looks like you are either not retaining the original character coding or you are outputting Unicode into a non Unicode coded stream.