From f29bd553260d53e5606fe7c57abcb9a29ad03b7c Mon Sep 17 00:00:00 2001 From: andi Date: Sun, 23 Jan 2005 12:34:32 +0100 Subject: utf8_check darcs-hash:20050123113432-9977f-c9ffd2cf315325fa6abc04323e767875d0f11d84.gz --- inc/utf8.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/inc/utf8.php b/inc/utf8.php index d06cfc58c..c985f48e8 100644 --- a/inc/utf8.php +++ b/inc/utf8.php @@ -29,6 +29,28 @@ function utf8_decodeFN($file){ return $file; } +/** + * Tries to detect if a string is in Unicode encoding + * + * @author + * @link http://www.php.net/manual/en/function.utf8-encode.php + */ +function utf8_check($Str) { + for ($i=0; $i