From 6cd89c8fd296e9076457378c84dbb079010251f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Arenaza?= Date: Sun, 4 Sep 2011 23:03:12 +0200 Subject: [PATCH] MDL-25736 TinyMce Spellchecker French issues GoogleSpell checker already returns data un UTF8, so there's no need to use utf8_encode (in fact, using it completely mangles the string). All credit goes to David Quintal for finding the issue and proposing the fix. --- .../3.5.1.1/plugins/spellchecker/classes/GoogleSpell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/editor/tinymce/tiny_mce/3.5.1.1/plugins/spellchecker/classes/GoogleSpell.php b/lib/editor/tinymce/tiny_mce/3.5.1.1/plugins/spellchecker/classes/GoogleSpell.php index afb60da13cb..e3acf2d878c 100644 --- a/lib/editor/tinymce/tiny_mce/3.5.1.1/plugins/spellchecker/classes/GoogleSpell.php +++ b/lib/editor/tinymce/tiny_mce/3.5.1.1/plugins/spellchecker/classes/GoogleSpell.php @@ -39,7 +39,7 @@ class GoogleSpell extends SpellChecker { $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) {