From 7cb46d5aee02b70b2505bfd48eceac5bfde54ea0 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 27 Sep 2007 14:08:46 +0000 Subject: [PATCH] Use mb_strtoupper instead of strtoupper to properly uppercase accented french characters --- lpdf.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lpdf.php b/lpdf.php index 4f41b71..177e095 100644 --- a/lpdf.php +++ b/lpdf.php @@ -208,20 +208,20 @@ class lpdf $lineheight=ceil($fontsize*1.2); //this is to make sure if the name of the school goes onto two lines we handle it properly - $l=$this->addLabelText($tmpY,strtoupper(trim($to))); + $l=$this->addLabelText($tmpY,mb_strtoupper(trim($to))); $tmpY+=($lineheight/72)*$l; if($co) { - $l=$this->addLabelText($tmpY,trim(strtoupper("C/O $co"))); + $l=$this->addLabelText($tmpY,trim(mb_strtoupper("C/O $co"))); $tmpY+=($lineheight/72)*$l; } if($address[strlen($address)-1]==".") $address=substr($address,0,-1); - $l=$this->addLabelText($tmpY,strtoupper(trim($address))); + $l=$this->addLabelText($tmpY,mb_strtoupper(trim($address))); $tmpY+=($lineheight/72)*$l; if(strlen($postalcode)==6) $pc=substr($postalcode,0,3)." ".substr($postalcode,3,3); else $pc=$postalcode; - $this->addLabelText($tmpY,trim(strtoupper("$city $province $pc"))); + $this->addLabelText($tmpY,trim(mb_strtoupper("$city $province $pc"))); }