From b3f3dad34e67070a9382258af0521faa9e1a2d61 Mon Sep 17 00:00:00 2001 From: Cris Date: Thu, 18 Oct 2018 11:28:01 +0200 Subject: [PATCH] Removed function to convert to Windows Charset --- include/functions.inc.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/include/functions.inc.php b/include/functions.inc.php index 819255af9..c7e7db23c 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -1112,20 +1112,4 @@ function setLeadingZero($number, $length = 2) } } -/** Converts special chars (Ä,Ö,Ü, €,...) to Windows Charset to be displayed correctly in Excel, Words and others. - * - * @param string $string - * @return string Windows encoded string. - */ -function convertToWindowsCharset($string) -{ - $charset = mb_detect_encoding( - $string, - "UTF-8, ISO-8859-1, ISO-8859-15", - true - ); - - $string = mb_convert_encoding($string, "Windows-1252", $charset); - return $string; -} ?>