About Combining Characters
In Unicode, characters with diacritical symbols sometimes might be stored as an ASCII letter and a diacritical symbol, for example: Ä
stored as A¨
.
To make sure that all your data is stored consistently for filtering, search, and character length checks, normalize the Unicode strings before saving them to the database:
import unicodedata
text = unicodedata.normalize("NFC", text)
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You