added convert_accented_characters() function to Text Helper
diff --git a/system/helpers/text_helper.php b/system/helpers/text_helper.php
index 1e67293..4772602 100644
--- a/system/helpers/text_helper.php
+++ b/system/helpers/text_helper.php
@@ -87,7 +87,7 @@
 		{
 			return $str;
 		}
-
+									
 		$out = "";
 		foreach (explode(' ', trim($str)) as $val)
 		{
@@ -136,7 +136,7 @@
 					$out  .= '&#'.array_shift($temp).';';
 					$count = 1;
 				}
-
+			
 				$out .= $str[$i];
 		   }
 		   else
@@ -248,7 +248,7 @@
 		// \w, \b and a few others do not match on a unicode character
 		// set for performance reasons. As a result words like über
 		// will not match on a word boundary. Instead, we'll assume that
-		// a bad word will be bookended by any of these characters.
+		// a bad word will be bookeneded by any of these characters.
 		$delim = '[-_\'\"`(){}<>\[\]|!?@#%&,.:;^~*+=\/ 0-9\n\r\t]';
 
 		foreach ($censored as $badword)
@@ -352,6 +352,44 @@
 		return $str;
 	}
 }
+
+// ------------------------------------------------------------------------
+
+/**
+ * Convert Accented Foreign Characters to ASCII
+ *
+ * @access	public
+ * @param	string	the text string
+ * @return	string
+ */	
+if ( ! function_exists('convert_accented_characters'))
+{
+	function convert_accented_characters($match)
+	{
+		if ( ! file_exists(APPPATH.'config/foreign_chars'.EXT))
+		{
+			return $match;
+		}
+	
+		include APPPATH.'config/foreign_chars'.EXT;
+	
+		if ( ! isset($foreign_characters))
+		{
+			return $match;
+		}
+								
+		$ord = ord($match['1']);
+		
+		if (isset($foreign_characters[$ord]))
+		{
+			return $foreign_characters[$ord];
+		}
+		else
+		{
+			return $match['1'];
+		}
+	}
+}
 	
 // ------------------------------------------------------------------------
 
@@ -431,7 +469,7 @@
 			// word into smaller chunks so we'll add it back to our current line
 			if ($temp != '')
 			{
-				$output .= $temp . "\n" . $line; 
+				$output .= $temp."\n".$line; 
 			}
 			else
 			{
@@ -456,7 +494,7 @@
 		return $output;	
 	}
 }
-
+ 
 
 /* End of file text_helper.php */
 /* Location: ./system/helpers/text_helper.php */
\ No newline at end of file