community / community.general / 3.8.10 / filter / unicode_normalize Normalizes unicode strings to facilitate comparison of characters with normalized forms | "added in version" 3.7.0 of community.general" Authors: Andrew Pantuso (@Ajpantuso)community.general.unicode_normalize (3.8.10) — filter
Install with ansible-galaxy collection install community.general:==3.8.10
collections: - name: community.general version: 3.8.10
Normalizes unicode strings to facilitate comparison of characters with normalized forms.
- name: Normalize unicode string ansible.builtin.set_fact: dictionary: "{{ 'ä' | community.general.unicode_normalize('NFKD') }}"
form: choices: - NFC - NFD - NFKC - NFKD default: NFC description: - The normal form to use. - See U(https://docs.python.org/3/library/unicodedata.html#unicodedata.normalize) for details. type: string _input: description: A unicode string. required: true type: string
_value: description: The normalized unicode string of the specified normal form. type: string