From ca11096508eb2a81bf2506af4d564bcbed32cadc Mon Sep 17 00:00:00 2001 From: Francois Gaillard Date: Mon, 21 Nov 2011 12:37:59 +0000 Subject: [PATCH] // BugFix Invoice / Delivery PDF encoding --- classes/PDF.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PDF.php b/classes/PDF.php index c1970cd11..e71657e85 100644 --- a/classes/PDF.php +++ b/classes/PDF.php @@ -898,7 +898,7 @@ class PDFCore extends PDF_PageGroupCore $this->MultiCell($w[++$i], 5, Tools::iconv('utf-8', self::encoding(), $product['product_name']), 'B'); $lineSize = $this->GetY() - $before; $this->SetXY($this->GetX() + $w[0] + ($delivery ? 15 : 0), $this->GetY() - $lineSize); - $this->Cell($w[++$i], $lineSize, ($product['product_reference'] ? $product['product_reference'] : '--'), 'B'); + $this->Cell($w[++$i], $lineSize, ($product['product_reference'] ? Tools::iconv('utf-8', self::encoding(), $product['product_reference']) : '--'), 'B'); if (!$delivery) $this->Cell($w[++$i], $lineSize, (self::$orderSlip ? '-' : '').self::convertSign(Tools::displayPrice($unit_price, self::$currency, true)), 'B', 0, 'R'); $this->Cell($w[++$i], $lineSize, $productQuantity, 'B', 0, 'C');