类别成员 API - Mediawiki
我有一个脚本,它使用此 API 调用中的排序键。以前它以这样的方式返回值:
ns = 876bcb5a0a63ac522ceb8c54647bf59b+\43168
title = Album:Bits And Blood (EP)
sortkey = CAT001
但是现在,排序键不再像以前那样返回值。有什么想法吗?
ns= 876bcb5a0a63ac522ceb8c54647bf59b+\43168
title=Album:Bits And Blood (EP)
sortkey=383038312d3036310a4249545320414e4420424c4f4f442028455029
I had a script which used the sort keys from this API call. Previously it returned values in such a fashion:
ns = 876bcb5a0a63ac522ceb8c54647bf59b+\43168
title = Album:Bits And Blood (EP)
sortkey = CAT001
But now, the sortkey does not return the value as it used to. Any ideas?
ns= 876bcb5a0a63ac522ceb8c54647bf59b+\43168
title=Album:Bits And Blood (EP)
sortkey=383038312d3036310a4249545320414e4420424c4f4f442028455029
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 mediawiki-api 邮件列表此公告。简而言之,对于国际化排序,他们将数据库中存储的排序键值更改为二进制表示形式,因此在 API 中,他们将其更改为以十六进制编码输出,以免破坏期望文本而不是二进制内容的客户端。
人类可读的值可用作
sortkeyprefix
。See this announcement to the mediawiki-api mailing list. In short, for internationalized sorting they changed the sortkey value stored in the database to a binary representation, and so in the API they changed it to output it as hex-encoded to not break clients expecting text rather than binary content.
The human-readable value is available as
sortkeyprefix
.