Django queries Especial Caracters
Posted
by
Jorge Machado
on Stack Overflow
See other posts from Stack Overflow
or by Jorge Machado
Published on 2010-12-24T19:18:27Z
Indexed on
2010/12/25
3:54 UTC
Read the original article
Hit count: 340
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
© Stack Overflow or respective owner