Page MenuHomePhabricator

Charset confusion on SPARQL POST Query (ISO-8859-1 instead of UTF-8)
Open, MediumPublicBUG REPORT


List of steps to reproduce (step by step, including full links if applicable):

  • Run the following curl query:
curl -H "Content-Type: application/sparql-query" -d "SELECT ?x { BIND('Curaçao' As ?x) }"

What happens?:

Broken encoding in result-set:


What should have happened instead?:

Correct value should be returned:


Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Event Timeline

Note that this is specific to the “query via POST directly” operation (SPARQL 1.1 Protocol 2.1.3). “query via POST with URL-encoded parameters” (2.1.2) doesn’t seem to be affected.

MPhamWMF triaged this task as Medium priority.May 9 2022, 3:36 PM
MPhamWMF moved this task from Incoming to Blazegraph on the Wikidata-Query-Service board.