Skip to content

Commit

Permalink
Fixed issue: Tidy was not configured for utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Jul 21, 2017
1 parent 14ab505 commit d9122da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion application/controllers/admin/translate.php
Expand Up @@ -404,7 +404,8 @@ private function _getLanguageList($iSurveyID, $tolang)
private function _cleanup($string, $options=array()){
if(extension_loaded('tidy')){
$oTidy = new tidy;
$cleansedString = $oTidy->repairString($string);

$cleansedString = $oTidy->repairString($string,null,'utf8');
} else {
//We should check for tidy on Installation!
$cleansedString = $string;
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/translate/translatefields_view.php
@@ -1,6 +1,6 @@
<?php if (strlen(trim((string)$textfrom)) > 0) : ?>
<?php if (extension_loaded('tidy')) : ?>
<?=tidy_repair_string($translateFields)?>
<?=tidy_repair_string($translateFields,null,'utf8')?>
<?php else:?>
<?=$translateFields;?>
<?php endif;?>
Expand Down

0 comments on commit d9122da

Please sign in to comment.