Explorar o código

Fix fpdf so that it is capable of UTF-8.

Mark Crane %!s(int64=10) %!d(string=hai) anos
pai
achega
16a52f0646
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      resources/fpdf/fpdf.php

+ 1 - 0
resources/fpdf/fpdf.php

@@ -644,6 +644,7 @@ function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link
 	}
 	}
 	if($txt!=='')
 	if($txt!=='')
 	{
 	{
+		$txt = iconv('utf-8', 'cp1252', $txt);
 		if($align=='R')
 		if($align=='R')
 			$dx = $w-$this->cMargin-$this->GetStringWidth($txt);
 			$dx = $w-$this->cMargin-$this->GetStringWidth($txt);
 		elseif($align=='C')
 		elseif($align=='C')