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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user