So, I tried a lot of different things and looked for a solution, but no luck ...
My query is SPARQL
PREFIX dbp: <http://dbpedia.org/resource/>
PREFIX dbpedia2: <http://dbpedia.org/property/>
SELECT ?currentclub
WHERE {
dbp:".$term." dbpedia2:currentclub ?currentclub .
FILTER langMatches(lang(?currentclub), 'en')
}
When $ term means something with an accent in the name, it gets all the hangs and results are not given. I tried a bunch of different things, but just can't get them to work. I hope for help.
thank
Edit
I use PHP and curl up. This is what I downloaded and modified for my needs ... here is the part where he communicates with dbpedia.
$searchUrl = 'http://dbpedia.org/sparql?'
.'query='.urlencode($query)
.'&format='.$format;
The $ request was sent above, and the format used is json.
Edit 2
Here is the source code of what I'm using. https://gist.github.com/380379 , maybe looking at the full code will give you a better idea of what's wrong.
, "utf8_unicode_ci", .