Index: wp-admin/import/blogware.php
===================================================================
--- wp-admin/import/blogware.php	(revision 11315)
+++ wp-admin/import/blogware.php	(working copy)
@@ -29,9 +29,13 @@
 		echo '</div>';
 	}
 
-	function unhtmlentities($string) { // From php.net for < 4.3 compat
+	function unhtmlentities($string) { // From MoxieCode's GoogleSpell plugin
+		$string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string);
+		$string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string);
+
 		$trans_tbl = get_html_translation_table(HTML_ENTITIES);
 		$trans_tbl = array_flip($trans_tbl);
+
 		return strtr($string, $trans_tbl);
 	}
 
Index: wp-admin/import/rss.php
===================================================================
--- wp-admin/import/rss.php	(revision 11315)
+++ wp-admin/import/rss.php	(working copy)
@@ -30,9 +30,13 @@
 		echo '</div>';
 	}
 
-	function unhtmlentities($string) { // From php.net for < 4.3 compat
+	function unhtmlentities($string) { // From MoxieCode's GoogleSpell plugin
+		$string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string);
+		$string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string);
+
 		$trans_tbl = get_html_translation_table(HTML_ENTITIES);
 		$trans_tbl = array_flip($trans_tbl);
+
 		return strtr($string, $trans_tbl);
 	}
 
Index: wp-admin/import/wordpress.php
===================================================================
--- wp-admin/import/wordpress.php	(revision 11315)
+++ wp-admin/import/wordpress.php	(working copy)
@@ -42,9 +42,13 @@
 		echo '</div>';
 	}
 
-	function unhtmlentities($string) { // From php.net for < 4.3 compat
+	function unhtmlentities($string) { // From MoxieCode's GoogleSpell plugin
+		$string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string);
+		$string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string);
+
 		$trans_tbl = get_html_translation_table(HTML_ENTITIES);
 		$trans_tbl = array_flip($trans_tbl);
+
 		return strtr($string, $trans_tbl);
 	}
 
