diff -urp svn/post.php dev/post.php
--- svn/post.php	2008-11-25 19:33:04.000000000 +0100
+++ dev/post.php	2008-12-01 00:57:23.000000000 +0100
@@ -947,10 +947,18 @@ function get_sample_permalink_html($id, 
 		return '';
 	}
 	$title = __('Click to edit this part of the permalink');
-	if (strlen($post_name) > 30) {
-		$post_name_abridged = substr($post_name, 0, 14). '&hellip;' . substr($post_name, -14);
+	if (function_exists('mb_strlen')) {
+		if (mb_strlen($post_name) > 30) {
+			$post_name_abridged = mb_substr($post_name, 0, 14). '&hellip;' . mb_substr($post_name, -14);
+		} else {
+			$post_name_abridged = $post_name;
+		}
 	} else {
-		$post_name_abridged = $post_name;
+		if (strlen($post_name) > 30) {
+			$post_name_abridged = substr($post_name, 0, 14). '&hellip;' . substr($post_name, -14);
+		} else {
+			$post_name_abridged = $post_name;
+		}
 	}
 	$post_name_html = '<span id="editable-post-name" title="'.$title.'">'.$post_name_abridged.'</span><span id="editable-post-name-full">'.$post_name.'</span>';
 	$display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink);
