Page MenuHomePhabricator

Add urldecode function
Closed, ResolvedPublic

Description

There are several use cases (e.g. T168877) where the data comes as encoded and needs to be matched against un-encoded data, or vice versa, and while encode_for_uri() function allows encoding, there's no function for decoding.

We may also want to add mediawiki encoding (replacing ' ' with '_' and other things, as in T131960).

Event Timeline

Restricted Application added projects: Wikidata, Discovery. · View Herald TranscriptJun 27 2017, 1:14 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Smalyshev triaged this task as Medium priority.Jun 27 2017, 7:08 PM

Change 361910 merged by jenkins-bot:
[wikidata/query/rdf@master] Add new functions to WDQS

https://gerrit.wikimedia.org/r/361910

Smalyshev closed this task as Resolved.Jul 10 2017, 5:17 PM

The function is wikibase:decodeUri.