Skip to content

Commit

Permalink
Merge pull request #151 from Grapsus/fix_word_export_encoding
Browse files Browse the repository at this point in the history
Fix: Word export encoding was said to be latin, but is in fact UTF-8
  • Loading branch information
c-schmitz committed Oct 23, 2013
2 parents d2ab3e8 + cf00657 commit 6529529
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/core/plugins/Authdb/Authdb.php
Expand Up @@ -159,7 +159,7 @@ public function listExportOptions()
break;

case 'doc':
$event->set('label', gT("Microsoft Word (Latin charset)"));
$event->set('label', gT("Microsoft Word (UTF-8 charset)"));
$event->set('onclick', 'document.getElementById("ansfull").checked=true;document.getElementById("ansabbrev").disabled=true;');
break;

Expand Down
3 changes: 2 additions & 1 deletion application/helpers/admin/export/DocWriter.php
Expand Up @@ -27,7 +27,8 @@ public function init(SurveyObj $survey, $sLanguageCode, FormattingOptions $oOpti
}


$sOutput = '<style>
$sOutput = '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
table {
border-collapse:collapse;
}
Expand Down

0 comments on commit 6529529

Please sign in to comment.