Django queries Especial Caracters
- by Jorge Machado
Hi, I Working on location from google maps and using django to. My question is:
I have a String in request.GET['descricao'] lets say it contains "Via rapida".
In my database i have store = "Via Rápida" i'm doing :
local = Local.objects.filter(name__icontains=request.GET['descricao'])
with that i can get everthing fine like "Via Rapida" but the result that have "Via rápida" never get match in the query (ASCI caracter may be ?)
what must i do given a string "Via rapida" match "via rápida" and "via rapida" ? Regular Expressions ? how ?
Thanks