|
From: <ex...@us...> - 2016-07-09 03:18:02
|
Revision: 7569
http://sourceforge.net/p/web-erp/reponame/7569
Author: exsonqu
Date: 2016-07-09 03:17:59 +0000 (Sat, 09 Jul 2016)
Log Message:
-----------
09/07/16 Exson: Fixed the utf8 character print incorrect of pdf file in class.pdf.php.
Modified Paths:
--------------
trunk/doc/Change.log
trunk/includes/class.pdf.php
Modified: trunk/doc/Change.log
===================================================================
--- trunk/doc/Change.log 2016-07-08 10:08:45 UTC (rev 7568)
+++ trunk/doc/Change.log 2016-07-09 03:17:59 UTC (rev 7569)
@@ -1,5 +1,5 @@
webERP Change Log
-
+09/07/16 Exson: Fixed the utf8 character print incorrect of pdf file in class.pdf.php.
08/07/16 Exson: Fixed the transaction atomicity bug by change table lock to row lock in SQL_CommonFunctions.inc.
08/07/16 Exson: Fixed the bug that when bank account or currency changes the functional rate or exrate unchanged with suggested rate in Payments.php.
07/07/16: Exson: Fixed the bug of wrong original amount of payments to another bank accounts in GLAccountInquiry.php and wrong transaction link in DailyBankTransactions.php and add payment transaction no in bank transaction ref to make it traceable.
Modified: trunk/includes/class.pdf.php
===================================================================
--- trunk/includes/class.pdf.php 2016-07-08 10:08:45 UTC (rev 7568)
+++ trunk/includes/class.pdf.php 2016-07-09 03:17:59 UTC (rev 7569)
@@ -109,7 +109,7 @@
case 'full':
$Align = 'J'; break;
default:
- $Align = 'L'; break;
+ $Align = 'L';
}
$this->SetFontSize($Height);// Public function SetFontSize() in ~/includes/tcpdf/tcpdf.php.
@@ -177,9 +177,9 @@
}
}
- $this->Cell($Width, $Height, mb_substr($s,0,$sep), $b, 2, $Align, $fill);
+ $this->Cell($Width,$Height,mb_substr($s,0,$sep,'UTF-8'),$b,2,$Align,$fill);
$this->x=$this->lMargin;
- return mb_substr($s, $sep);
+ return mb_substr($s, $sep,null,'UTF-8');
}// End function addTextWrap.
function addInfo($label, $value) {
|