Permalink
Browse files

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.
  • Loading branch information...
1 parent 8ccaa29 commit b98dd3ff31fe206a17c5a4bac75da19f872ffd4a @iarenaza iarenaza committed Sep 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/editor/tinymce/plugins/spellchecker/classes/GoogleSpell.php
View
2 lib/editor/tinymce/plugins/spellchecker/classes/GoogleSpell.php
@@ -39,7 +39,7 @@ function &getSuggestions($lang, $word) {
$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) {

0 comments on commit b98dd3f

Please sign in to comment.