#33218: slugify() can't handle Turkish İ while allow_unicode = True
---------------------------+--------------------------------------
Reporter: sowinski | Owner: nobody
Type: Bug | Status: closed
Component: Utilities | Version: dev
Severity: Normal | Resolution: invalid
Keywords: slugify | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------+--------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => invalid
* component: CSRF => Utilities
Comment:
It's not about 'İ' but about '̇' which is the second character. IMO,
`slugify()` properly removes '̇', see:
{{{
>>> test_str = "i̇zmit"
>>> output = slugify(test_str, allow_unicode = True)
>>> for x, y in enumerate(test_str):
... print(y, output[x], y == output[x])
i i Truė
z False
z m False
m i False
i t False
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
IndexError: string index out of range
}}}
See also related ticket #30892 about "İ".
--
Ticket URL: <https://code.djangoproject.com/ticket/33218#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.e0ccce3723c6d1263b4090fc4630bb35%40djangoproject.com.