Navigation Menu

Skip to content

Commit

Permalink
Fixed issue #6969: Arabic characters not properly shown when exportin…
Browse files Browse the repository at this point in the history
…g statistics as PDF
  • Loading branch information
c-schmitz committed Jan 5, 2013
1 parent fcfb2cd commit eaf64ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/config/config-defaults.php
Expand Up @@ -445,7 +445,7 @@ function hook_get_auth_webserver_profile($user_name)
* pdfdefaultfont (string)
* PDF export responses settings - default font for the PDF export
*/
$config['pdfdefaultfont'] = 'freemono';
$config['pdfdefaultfont'] = 'dejavusans';

/**
* pdffontsize (integer)
Expand Down
4 changes: 2 additions & 2 deletions application/helpers/admin/statistics_helper.php
Expand Up @@ -2924,8 +2924,8 @@ function generate_statistics($surveyid, $summary, $usegraph = 0, $outputType = '

$this->pdf->AddPage('P', ' A4');

$this->pdf->Bookmark($this->pdf->delete_html($statlang->gT("Results", 'unescaped')), 0, 0);
$this->pdf->titleintopdf($statlang->gT("Results", 'unescaped'), $statlang->gT("Survey", 'unescaped') . " " . $surveyid);
$this->pdf->Bookmark($statlang->gT("Results",'unescaped'), 0, 0);
$this->pdf->titleintopdf($statlang->gT("Results",'unescaped'),$statlang->gT("Survey",'unescaped')." ".$surveyid);
$this->pdf->tableintopdf($array);

$this->pdf->AddPage('P', 'A4');
Expand Down

0 comments on commit eaf64ee

Please sign in to comment.