#34766 closed Uncategorized (duplicate)
utils.text: slugify misses "l" when converting "ł" — at Version 2
Reported by: | Marcin Wieczorek | Owned by: | nobody |
---|---|---|---|
Component: | Utilities | Version: | 4.2 |
Severity: | Normal | Keywords: | slugify, utils |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I expected Polish word "żółć" to be slugified as "zolc". Instead slugify
returns zoc
.
$ pip freeze | grep Django Django==4.2.4 $ python -V Python 3.11.3 $ python >>> from django.utils.text import slugify >>> slugify("żółć") 'zoc' >>> slugify("zażółć gęslą jaźń") 'zazoc-gesla-jazn'
Change History (2)
comment:1 by , 16 months ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 16 months ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
Django uses
NFKD
normalization viaunicodedata.normalize()
. We don't maintain our own character maps, so there is nothing to "fix" in Django itself.