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"))); }