Skip to content

Commit

Permalink
MDL-25736 TinyMce Spellchecker French issues
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
iarenaza committed Nov 10, 2012
1 parent 2b3dbc7 commit 38e0237
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -39,7 +39,7 @@ function &getSuggestions($lang, $word) {
$matches = $this->_getMatches($lang, $word); $matches = $this->_getMatches($lang, $word);


if (count($matches) > 0) if (count($matches) > 0)
$sug = explode("\t", utf8_encode($this->_unhtmlentities($matches[0][4]))); $sug = explode("\t", $this->_unhtmlentities($matches[0][4]));


// Remove empty // Remove empty
foreach ($sug as $item) { foreach ($sug as $item) {
Expand Down

0 comments on commit 38e0237

Please sign in to comment.