alex/django-taggit — Issue #88: unicode tags are duplicated
Author: domguard
Created: 2011-12-12 23:50:18+00:00
State: open

As said [on the mailing list](https://groups.google.com/d/msg/django-taggit/R7tHUmPknF0/WSjXlPyI0FMJ), after its first submission, each time a tag with accented letters (as in most europeans languages) is submitted, it is created again, this leads to multiples occurences of the same tag, with slug_1, slug_2, etc

After some time looking at the add method, I cannot submit a fix or a test case, but you can see the error if you just add a line

print tag_objs

after line 171 in managers.py, it will display

set([])

the new_tag variable used in line 171 is of type "string" and that doesn't play well with unicode data
I did not find where the string had to be converted to unicode, perhaps around line 158, where tags arguments are read, but all my attempts failed for now...