{{{
$ 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'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34766>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
Django uses `NFKD` normalization via `unicodedata.normalize()`. We don't
maintain our own character maps, so there is nothing to "fix" in Django
itself.
--
Ticket URL: <https://code.djangoproject.com/ticket/34766#comment:1>
Old description:
> 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'
> }}}
New description:
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'
}}}
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34766#comment:2>
* resolution: invalid => duplicate
Comment:
Duplicate of #8391.
--
Ticket URL: <https://code.djangoproject.com/ticket/34766#comment:3>
Comment (by Marcin Wieczorek):
Thank you
--
Ticket URL: <https://code.djangoproject.com/ticket/34766#comment:4>