diff --git a/trunk/JLanguageTool/website/include/help.php b/trunk/JLanguageTool/website/include/help.php
index <HASH>..<HASH> 100644
--- a/trunk/JLanguageTool/website/include/help.php
+++ b/trunk/JLanguageTool/website/include/help.php
@@ -84,4 +84,15 @@ function post_request($url, $data, $optional_headers=null) {
 	return $resp;
 }
 
+// see http://www.php.net/manual/en/function.substr.php:
+function utf8_substr($str, $start) { 
+   preg_match_all("/./u", $str, $ar); 
+   if (func_num_args() >= 3) { 
+       $end = func_get_arg(2); 
+       return join("",array_slice($ar[0], $start, $end)); 
+   } else { 
+       return join("",array_slice($ar[0], $start)); 
+   } 
+}
+
 ?>
helper for demo (utf-8 aware string replacement)