From c95472f0794c1784139a100d3968522f0cb05ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alec=20H=C3=B6fler?= Date: Fri, 6 May 2022 08:14:24 +0200 Subject: [PATCH] setting charset using ini_set --- index.php | 18 ++++-------------- ticket-check.php | 3 +++ 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/index.php b/index.php index fb3273f..3fe5fdc 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,7 @@ Name - ' . sonderzeichen($row2["first_name"]) . " " . sonderzeichen($row2["last_name"]) . ' + ' . $row2["first_name"] . " " . $row2["last_name"] . ' Bestelldatum @@ -130,7 +132,7 @@ $data = ' Kontakt - ' . (($row2["paypal_token"] != "") ? ($row2["email"] . " /  " . $row2["phone"]) : "-") . ' + ' . (($row2["paypal_token"] != "") ? ($row2["email"] . " /  " . $row2["phone"]) : "-") . ' Vorstellung @@ -168,16 +170,4 @@ try { $mpdf->Output(); } catch (MpdfException $ex) { echo 'Exception abgefangen: ', $ex->getMessage(), "\n
"; -} - -function sonderzeichen($string): string -{ - $res = $string; - $res = str_replace("ä", "ae", $res); - $res = str_replace("ü", "ue", $res); - $res = str_replace("ö", "oe", $res); - $res = str_replace("Ä", "Ae", $res); - $res = str_replace("Ü", "Ue", $res); - $res = str_replace("Ö", "Oe", $res); - return str_replace("ß", "ss", $res); } \ No newline at end of file diff --git a/ticket-check.php b/ticket-check.php index acf49ad..3379d83 100644 --- a/ticket-check.php +++ b/ticket-check.php @@ -1,5 +1,8 @@