소스 검색

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

Mark Crane 10 년 전
부모
커밋
16a52f0646
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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!=='')
 	{
+		$txt = iconv('utf-8', 'cp1252', $txt);
 		if($align=='R')
 			$dx = $w-$this->cMargin-$this->GetStringWidth($txt);
 		elseif($align=='C')