2011/4/16 Karen McNeil <karenlmcn...@gmail.com> > Yep, the encoding was the problem. I just added a line > searchterm = searchterm.encode('utf-8') >
Does the nltk code not support unicode? A better solution would be to never do explicit encoding yourself, but rather just pass unicode from the DB and unicode from request.GET into nltk, unless that doesn't work for some reason. Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.