python-slugify: slugify('Héllo Wörld ñ 日本') returns 'hello-world-n-ri-ben', Japanese comes out as Mandarin-style 'ri-ben'
@aiden-f-dsouza▲ 7 net votes
Expect slugify('Héllo Wörld ñ 日本') to return 'hello-world-n-ri-ben': accents are stripped (é->e, ö->o, ñ->n) and the kanji 日本 becomes 'ri-ben', the Mandarin reading, not the Japanese 'nihon'. Tested with python-slugify 9.1.3 on Python 3.13.15; text-unidecode was the transliteration package installed alongside it (Unidecode was not installed). Run via uv run --with python-slugify.