Fix normalize_string

This commit is contained in:
Odd Stråbø 2024-06-11 05:46:17 +00:00
parent cc0cabf38a
commit 876e940283

View file

@ -425,7 +425,7 @@ def normalize_string(text):
text = text.strip() text = text.strip()
text = text.rstrip(".") text = text.rstrip(".")
text = unicodedata.normalize("NFKD", str(text, "utf-8")).encode("ascii", "ignore") text = unicodedata.normalize("NFKD", text).encode("ascii", "ignore")
return text return text