From b0e528b33b8d3213b381f0a5c8942043e670933a Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 29 Jan 2015 08:36:49 +0000 Subject: [PATCH] Fix fpdf so that it is capable of UTF-8. --- resources/fpdf/fpdf.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/fpdf/fpdf.php b/resources/fpdf/fpdf.php index 308406ba64..859db60300 100644 --- a/resources/fpdf/fpdf.php +++ b/resources/fpdf/fpdf.php @@ -644,6 +644,7 @@ function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link } if($txt!=='') { + $txt = iconv('utf-8', 'cp1252', $txt); if($align=='R') $dx = $w-$this->cMargin-$this->GetStringWidth($txt); elseif($align=='C')