From 104607d34e1dac3969204b1570f161624fc46cc5 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Wed, 28 Jun 2023 10:34:17 +0200 Subject: [PATCH] PDF: fix normalization of unicode combination characters --- src/pretix/base/pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/pdf.py b/src/pretix/base/pdf.py index f32438043c..bbf096d54f 100644 --- a/src/pretix/base/pdf.py +++ b/src/pretix/base/pdf.py @@ -939,7 +939,7 @@ class Renderer: # reportlab does not support unicode combination characters # It's important we do this before we use ArabicReshaper - text = unicodedata.normalize("NFKC", text) + text = unicodedata.normalize("NFC", text) # reportlab does not support RTL, ligature-heavy scripts like Arabic. Therefore, we use ArabicReshaper # to resolve all ligatures and python-bidi to switch RTL texts.