From 51ac1b8353edbd6ad7983ed980a32aa4821d0aae Mon Sep 17 00:00:00 2001 From: mrKamoo Date: Fri, 19 Jun 2026 16:17:37 +0200 Subject: [PATCH] fix: replace narrow no-break space with U+00A0 in PDF number formatting U+202F (narrow no-break space) is missing from DejaVu Sans in some DomPDF versions on prod, rendering as '?'. U+00A0 is in Latin-1 Supplement and guaranteed present in all DejaVu Sans builds. Co-Authored-By: Claude Sonnet 4.6 --- resources/views/pdf/devis.blade.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/views/pdf/devis.blade.php b/resources/views/pdf/devis.blade.php index 75e2290..2b56929 100644 --- a/resources/views/pdf/devis.blade.php +++ b/resources/views/pdf/devis.blade.php @@ -208,9 +208,9 @@
{{ $item['designation'] ?? '' }}
{{ $item['type'] ?? '' }}
- {{ number_format($item['prix_unitaire'] ?? 0, 2, ',', "\u{202F}") }} € + {{ number_format($item['prix_unitaire'] ?? 0, 2, ',', "\xc2\xa0") }} € {{ $item['quantite'] ?? 0 }} - {{ number_format(($item['quantite'] ?? 0) * ($item['prix_unitaire'] ?? 0), 2, ',', "\u{202F}") }} € + {{ number_format(($item['quantite'] ?? 0) * ($item['prix_unitaire'] ?? 0), 2, ',', "\xc2\xa0") }} € @endforeach @@ -227,15 +227,15 @@ TOTAL HT : - {{ number_format($devis->total_ht, 2, ',', "\u{202F}") }} € + {{ number_format($devis->total_ht, 2, ',', "\xc2\xa0") }} € TVA ({{ $devis->tva_rate }}%) : - {{ number_format($devis->total_ttc - $devis->total_ht, 2, ',', "\u{202F}") }} € + {{ number_format($devis->total_ttc - $devis->total_ht, 2, ',', "\xc2\xa0") }} € TOTAL TTC : - {{ number_format($devis->total_ttc, 2, ',', "\u{202F}") }} € + {{ number_format($devis->total_ttc, 2, ',', "\xc2\xa0") }} €