Skip to content

Commit

Permalink
fix: remove char causing decoding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato committed Feb 9, 2024
1 parent 45d9fab commit 1601c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eodag/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def strip_accents(s: str) -> str:
>>> strip_accents('preserve-punct-special-chars:;,?!§%$£œ')
'preserve-punct-special-chars:;,?!§%$£œ'
"""
# Mn stands for a nonspacing combining mark (e.g. '́')
# Mn stands for a nonspacing combining mark
return "".join(
c for c in unicodedata.normalize("NFD", s) if unicodedata.category(c) != "Mn"
)
Expand Down

0 comments on commit 1601c19

Please sign in to comment.