Today, I want to discuss a topic that, when I discovered it, significantly improved my workflow. It is the standard library module unicodedata. This module proves exceptionally valuable when parsing data. Let’s delve into why.
The unicodedata.normalize(form, unistr, /) function serves to convert Unicode strings into their standardized form.
There are four possible values for form, two for composing and two for decomposing:
Firstly, let’s check some stuff in a Python shell: