Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more compact response with formatversion=2 or utf8= #14

Open
skierpage opened this issue Nov 3, 2015 · 0 comments
Open

more compact response with formatversion=2 or utf8= #14

skierpage opened this issue Nov 3, 2015 · 0 comments

Comments

@skierpage
Copy link

(Nice, I mention this in https://www.mediawiki.org/wiki/API:Presenting_Wikidata_knowledge#See_also )
The wbgetentities API call returns

... "ar": {"language":"ar","value":"\u0644\u063a\u0629 \u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629"}, etc.

Assuming all JavaScript clients can handle UTF-8, specifying formatversion=2 or utf8= in the API request returns:

... "ar":{"language":"ar","value":"لغة إنجليزية"}, etc.

The response is approximately 20% more compact for the qLabel main page example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant