我在解析 xml 时使用 UTF-16LE。但是,它在某些设备上不起作用
设备正在获取 UTF16 编码的 XML 响应,然后我解析 xml。
在某些设备上它不起作用。所有这些设备都支持 utf-16。
可能是什么问题?
Device is getting a UTF16 encoded XML response then I parse xml.
On some device it doesn't work. All these devices support utf-16.
What may be the problem in?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有看到代码,这会很棘手,但如果我没记错的话,一些诺基亚设备会选择是否在编码名称中使用连字符。如果“UTF16”不起作用,请尝试“UTF-16”,反之亦然。
It's tricky without seeing code, but if I remember correctly, some nokia devices were choosy about whether you used a hyphen or not in the encoding name. If "UTF16" doesn't work, try "UTF-16" instead, or vise versa.