Graph API 将变音字母字符返回为问号
检索姓名中含有变音字母(ä、ö 等)的用户数据时,图形 API 有时会返回问号而不是字母。
示例:https://graph.facebook.com/1266896428
对于名为“Anne Jääskeläinen”的用户,图形 API 返回此内容:
{
"id": "1266896428",
"name": "Anne J\u00e4\u00e4skel\u00e4inen",
"first_name": "Anne",
"middle_name": "J\u00e4\u00e4skel\u00e4inen",
"last_name": "j??skel?nen",
"gender": "female",
"locale": "fi_FI"
}
以前有人遇到过此情况吗?这是 Facebook 问题还是我可以做点什么?
When retrieving data for users with umlaut-letters in their names (ä, ö, etc.), the graph API sometimes returns question marks instead of the letters.
Example: https://graph.facebook.com/1266896428
For a user with name "Anne Jääskeläinen", the graph API returns this:
{
"id": "1266896428",
"name": "Anne J\u00e4\u00e4skel\u00e4inen",
"first_name": "Anne",
"middle_name": "J\u00e4\u00e4skel\u00e4inen",
"last_name": "j??skel?nen",
"gender": "female",
"locale": "fi_FI"
}
Has anyone encountered this before? Is this a facebook issue or can I do something about it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这已被确认为 Facebook Graph API 中的一个错误。该错误现已分配。
https://developers.facebook.com/bugs/299214506757356?browse=search_4ea6b52d8fda52818597942
This has been confirmed as a bug in the Facebook Graph API. The bug is now assigned.
https://developers.facebook.com/bugs/299214506757356?browse=search_4ea6b52d8fda52818597942