From ab0750cbbfd93782407b321656bf6b50cb9c32d8 Mon Sep 17 00:00:00 2001 From: aurelien goudeneche <44634756+AurelGDN@users.noreply.github.com> Date: Fri, 7 Dec 2018 02:29:22 +0100 Subject: [PATCH] Update invoice.php --- htdocs/takepos/invoice.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index 6dd124a5089..6ce680e6972 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -196,8 +196,7 @@ if ($action=="temp" and $placeid!=0){ function StringCleanCharts($text) { $utf8 = array('/[áàâãªä]/u'=>'a','/[ÁÀÂÃÄ]/u'=>'A','/[ÍÌÎÏ]/u'=>'I','/[íìîï]/u'=>'i','/[éèêë]/u'=>'e','/[ÉÈÊË]/u'=>'E','/[óòôõºö]/u'=>'o','/[ÓÒÔÕÖ]/u'=>'O','/[úùûü]/u'=>'u','/[ÚÙÛÜ]/u'=>'U','/ç/'=>'c','/Ç/' =>'C','/ñ/'=>'n','/Ñ/'=>'N','/–/'=>'-','/[’‘‹›‚\']/u'=>' ','/[“”«»„]/u'=>' ','/ /'=>' ',); - return preg_replace(array_keys($utf8), array_values($utf8), $text - ); + return preg_replace(array_keys($utf8), array_values($utf8), $text); } $mysocname=StringCleanCharts($mysoc->name);