Index: trunk/wb/framework/functions-utf8.php
===================================================================
--- trunk/wb/framework/functions-utf8.php	(revision 757)
+++ trunk/wb/framework/functions-utf8.php	(revision 758)
@@ -63,13 +63,13 @@
 /*
  * Checks if a string contains 7bit ASCII only
  *
- * @author Andreas Gohr <andi@splitbrain.org>
+ * @author thorn
  */
 function utf8_isASCII($str){
-  for($i=0; $i<strlen($str); $i++){
-    if(ord($str{$i}) >127) return false;
-  }
-  return true;
+	if(preg_match('/[\x80-\xFF]/', $str))
+		return false;
+	else
+		return true;
 }
 
 /*
@@ -1097,4 +1097,4 @@
 	return($string);
 }
 
-?>
\ No newline at end of file
+?>
