maproulette / maproulette-backend

MapRoulette back-end / API
Apache License 2.0
50 stars 38 forks source link

Create Overpass QL contains non-ascii chracters... #310

Open y-kim opened 7 years ago

y-kim commented 7 years ago

It isn't available to create an Overpass QL which contains non-ascii characters. Strictly, subset of Unicode characters are allowed in Overpass QL (U+0020~U+0072, U+000A). All other characters are stripped by Javascript statement in challengeForm.scala.html:99.

mvexel commented 7 years ago

Good point, it would be good to address this. Anyone want to investigate and supply a PR?

robybully commented 7 years ago

This issue belongs maybe also to special characters in different languages. The special characters in Overpass API textfield are lost and the query delivers no results although the challenge is built correct and Completed.

For example: ["wikipedia"\~"de:Liste der Kulturdenkmäler in Bremen-Schwachhausen"] is saved as ["wikipedia"\~"de:Liste der Kulturdenkmler in Bremen-Schwachhausen"] which delivers no result. German special characters can be used: ÄÖÜäöüß... If I change it to ["wikipedia"~"ler in Bremen-Schwachhausen"] it works.