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.
This commit is contained in:
Iñaki Arenaza
2012-11-10 20:02:03 +01:00
parent ff63a3ad58
commit 6cd89c8fd2
@@ -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) {