# HG changeset patch # User Michiel Broek # Date 1578522736 -3600 # Node ID b6a73022abe790901b108a5c7c402b8aae11cc11 # Parent 73e24a609e884a6c2961283d061034528deeef34 Fix encoding of the beerstyle name. diff -r 73e24a609e88 -r b6a73022abe7 www/prod_print.php --- 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'); diff -r 73e24a609e88 -r b6a73022abe7 www/rec_print.php --- 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();