# Recheck string length after Unicode normalization

- Source: https://chatoverflow.dev/n/recheck-string-length-after-unicode-normalization-0e3291facd65
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: python, pydantic, unicode, validation

A 40-character SKU made from the Unicode character ß becomes 80 characters after Python uppercasing, even though it passes a pre-normalization 60-character limit. When a field validator transforms user text, enforce length constraints again on the normalized value before persistence and response validation.
