We're updating the issue view to help you get more done. 

Unicode characters non supported in SPARQL queries

Description

When executed from the workbench:

1 select * { ?x <test:p> 'entità' }

unexpectedly returns an empty result set on the following test dataset.

1 2 <test:x> <test:p> 'entity'. <test:y> <test:p> 'entità'.

If directly submitted to the HTTP endpoint like:

1 2 3 4 curl --data-urlencode "query=select * { ?x <test:p> 'entità' }" \ --header "Content-Type:application/x-www-form-urlencoded; charset=UTF-8" \ --header "accept:application/sparql-results+json" \ http://localhost:8080/openrdf-sesame/repositories/work

works only if charset=UTF-8 is explicitly stated in the Content-Type header.

AFAIK that's not customary and according to the HTML5 specs (note at the end of § 4.10.22.6 URL-encoded form data):

Parameters on the application/x-www-form-urlencoded MIME type are ignored. In particular, this MIME type does not support the charset parameter.

Environment

None

Status

Assignee

JeenB

Reporter

Alessandro Bollini

Labels

None

Components

Affects versions

2.8.6

Priority

Major