# DBpedia and SPARQL: Query with accent marks does not work

**URL:** <https://forum.kirupa.com/t/dbpedia-and-sparql-query-with-accent-marks-does-not-work/319807>\
**Category:** programming\
**Created:** [March 5, 2011, 12:19am UTC](https://forum.kirupa.com/t/dbpedia-and-sparql-query-with-accent-marks-does-not-work/319807 "2011-03-05T00:19:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OKAJ](https://avatars.discourse-cdn.com/v4/letter/o/76d3ee/32.png) [@OKAJ](https://forum.kirupa.com/u/OKAJ)\
**Post date:** [March 5, 2011, 12:19am UTC](https://forum.kirupa.com/t/dbpedia-and-sparql-query-with-accent-marks-does-not-work/319807/1 "2011-03-05T00:19:37Z")

</div>

So I’ve tried a lot of different things and have been searching for a solution, but haven’t had any luck…

My SPARQL query is

> PREFIX dbp: \<[About: http://dbpedia.org/resource/](http://dbpedia.org/resource/&gt);  
> PREFIX dbpedia2: \<[About: 0-](http://dbpedia.org/property/&gt);

SELECT ?currentclub  
WHERE {  
dbp:“.$term.” dbpedia2:currentclub ?currentclub .  
FILTER langMatches(lang(?currentclub), ‘en’)  
}

When the $term equals something with an accent mark in the name it gets all screwed up and no results are given. I tried a bunch of different things, but just can’t seem to get any of them to work. Hoping for some help.

Thanks
