From b92a67483d467906f8e004718cd6b1f8fb1c0613 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 15 Oct 2008 03:44:41 -0400
Subject: [PATCH] - fix multibyte characters on spellchecker suggestions list (still not fixed in tinyMCE repo)

---
 program/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php |    2 +-
 program/js/tiny_mce/plugins/spellchecker/classes/PSpell.php      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/program/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php b/program/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php
index 7347984..d57dee7 100755
--- a/program/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php
+++ b/program/js/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php
@@ -38,7 +38,7 @@
 		$matches = $this->_getMatches($lang, $word);
 
 		if (count($matches) > 0)
-			$sug = explode("\t", utf8_encode($this->_unhtmlentities($matches[0][4])));
+			$sug = explode("\t", $this->_unhtmlentities($matches[0][4]));
 
 		// Remove empty
 		foreach ($sug as $item) {
diff --git a/program/js/tiny_mce/plugins/spellchecker/classes/PSpell.php b/program/js/tiny_mce/plugins/spellchecker/classes/PSpell.php
index 45448d0..6aa255c 100755
--- a/program/js/tiny_mce/plugins/spellchecker/classes/PSpell.php
+++ b/program/js/tiny_mce/plugins/spellchecker/classes/PSpell.php
@@ -37,7 +37,7 @@
 		$words = pspell_suggest($this->_getPLink($lang), $word);
 
 		for ($i=0; $i<count($words); $i++)
-			$words[$i] = utf8_encode($words[$i]);
+			$words[$i] = $words[$i];
 
 		return $words;
 	}

--
Gitblit v1.9.1