Wed, 08 Jan 2020 23:32:16 +0100
Fix encoding of the beerstyle name.
www/prod_print.php | file | annotate | diff | comparison | revisions | |
www/rec_print.php | file | annotate | diff | comparison | revisions |
--- a/www/prod_print.php Tue Jan 07 16:03:45 2020 +0100 +++ b/www/prod_print.php Wed Jan 08 23:32:16 2020 +0100 @@ -109,7 +109,8 @@ $this->SetX($this->TableX); $this->Cell(35,5,'Bierstijl',0,0,'L',true); - $this->Cell(45,5,$row['st_name'],0,0,'L',true); + $st_name = iconv('UTF-8','windows-1252',$row['st_name']); + $this->Cell(45,5,$st_name,0,0,'L',true); $this->Cell($vul,5,'',0,0,'L',false); $this->Cell(35,5,'Installatie',0,0,'L',true); $this->Cell(45,5,$row['eq_name'],0,0,'L',true); @@ -1126,7 +1127,8 @@ $this->Cell(0,5,$prdate,0,1,'L'); $this->SetX(45); $this->Cell(17,5,'Stijl:',0,0,'L'); - $this->Cell(0,5,$row['st_name'],0,1,'L'); + $st_name = iconv('UTF-8','windows-1252',$row['st_name']); + $this->Cell(0,5,$st_name,0,1,'L'); $this->SetX(45); $this->Cell(17,5,'Fase:',0,0,'L'); $this->Cell(0,5,$stage[$row['stage']],0,1,'L');
--- a/www/rec_print.php Tue Jan 07 16:03:45 2020 +0100 +++ b/www/rec_print.php Wed Jan 08 23:32:16 2020 +0100 @@ -612,7 +612,8 @@ $this->Cell(0,5,$prdate,0,1,'L'); $this->SetX(45); $this->Cell(17,5,'Stijl:',0,0,'L'); - $this->Cell(0,5,$row['st_name'],0,1,'L'); + $st_name = iconv('UTF-8','windows-1252',$row['st_name']); + $this->Cell(0,5,$st_name,0,1,'L'); $this->Ln(7); // Ensure table header is printed parent::Header();