Use mb_strtoupper instead of strtoupper to properly uppercase accented french characters

This commit is contained in:
james 2007-09-27 14:08:46 +00:00
parent 2063ada383
commit 7cb46d5aee

View File

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