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 2011-09-04 23:03:12 +02:00
parent 8ccaa296fa
commit b98dd3ff31

View File

@ -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) {