On this page
  1. unicodedata.is_normalized
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

unicodedata.is_normalized

Prev: unicodedata.east_asian_width | Up: unicodedata | Next: unicodedata.lookup
Rel: unicodedata.bidirectional, unicodedata.category, unicodedata.combining, unicodedata.decimal
Ref: docs.python.org — unicodedata.is_normalized
Tags: #public #python3 #stdlib #unicodedata


Import

import unicodedata
from unicodedata import is_normalized

Signature & Overview

unicodedata.is_normalized(form, unistr, /)

Return whether the Unicode string unistr is in the normal form 'form'.

Usage

import unicodedata

assert unicodedata.is_normalized('NFC', 'café') is True
assert unicodedata.is_normalized('NFC', 'cafe\u0301') is False

Gotchas

REPL Inspect

from unicodedata import is_normalized
help(is_normalized)

Linked from

Related notes