From cec9a65b0c7cc71cdda1b7920ab348fb40d3d85d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 29 Sep 2010 08:05:22 +0000 Subject: [PATCH] Fix: utf8 detector --- htdocs/lib/functions.lib.php | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 8019f8b25b9..07b827aeea7 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -3318,23 +3318,24 @@ function dol_sort_array(&$array, $index, $order='asc', $natsort, $case_sensitive /** - * \brief Check if a string is in UTF8 - * \param $Str String to check - * \return boolean True if string is UTF8 or ISO compatible with UTF8, False if not (ISO with special char or Binary) + * Check if a string is in UTF8 + * @param $Str String to check + * @return boolean True if string is UTF8 or ISO compatible with UTF8, False if not (ISO with special char or Binary) */ -function utf8_check($Str) +function utf8_check($str) { - for ($i=0; $i