Fix fpdf so that it is capable of UTF-8.
This commit is contained in:
parent
8a895958e8
commit
3c475f1e1f
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue