1

I have this:

letter = None

if request.method == 'GET':
    if 'letter' in request.GET:
        letter = request.GET['letter']

if letter is not None:
    items = MyModel.objects.filter(title__istartswith=letter)

But for characters like 'Ą', 'Ć' etc. QuerySet returns results as for 'A', 'C', etc.

What can I do this to work?

Nips
  • 13,162
  • 23
  • 65
  • 103
  • 6
    Check your DB backend, especially MySQL, for collation rules and encoding. Refs http://stackoverflow.com/questions/367711/what-is-the-best-collation-to-use-for-mysql-with-php , especially the link of the accepted answer. – okm Apr 19 '12 at 12:31
  • I think it's a browser url problem. It's not support unicode, but I'm not sure. – alexarsh Apr 20 '12 at 14:34

0 Answers0