Update invoice.php

This commit is contained in:
aurelien goudeneche 2018-12-07 02:29:22 +01:00 committed by GitHub
parent 6f5752ae2c
commit ab0750cbbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);