0

I need to make a query that return results ignoring case and accents. Example: I search for 'atacadao' and as a possible answer would be Atacadão, atacadão, Atacadao and atacadao.

1 Answers1

0

I don't believe native python will do this. You will need to use a library to decode the text first, and then search against the database.

A popular one is Unidecode which is explained in this article:

What is the best way to remove accents (normalize) in a Python unicode string?

OneAdamTwelve
  • 236
  • 1
  • 3
  • 14