diff --git a/www/html2pdf.php b/www/html2pdf.php index 90f436218..81ac92ba1 100644 --- a/www/html2pdf.php +++ b/www/html2pdf.php @@ -52,8 +52,6 @@ if($nomFic == ''){ $count = 0; $nbAnnonces = count($annonces); - - if($nbAnnonces>0){ foreach($annonces as $annonce){ if($count>$nbAnnoncesMax) break; @@ -119,7 +117,7 @@ if($nomFic == ''){ // conversion HTML => PDF require_once 'html2pdf/html2pdf.class.php'; $html2pdf = new HTML2PDF('P','A4','fr'); - $html2pdf->WriteHTML($output); + $html2pdf->WriteHTML(utf8_decode($output)); $html2pdf->Output(str_replace('.csv', '.pdf', $nomFic), 'D'); }