small change
This commit is contained in:
@@ -30,7 +30,10 @@ $pdf->Cell(40, 6, $addresspdf, 1, 0, 'L');
|
||||
|
||||
|
||||
$contactsaddress = html_entity_decode($contactsinfoData['address']);
|
||||
$contactsaddress = iconv('UTF-8', 'windows-1252', $contactsaddress);
|
||||
$contactsaddress = mb_convert_encoding($contactsaddress, 'ISO-8859-1', 'UTF-8'); // Conversione diretta
|
||||
$contactsaddress = iconv('ISO-8859-1', 'windows-1252//TRANSLIT', $contactsaddress);
|
||||
|
||||
|
||||
$pdf->Cell(150, 6, $contactsaddress, 1, 0, 'L', TRUE);
|
||||
$pdf->Ln();
|
||||
$pdf->Cell(40, 6, $citytitleb, 1, 0, 'L');
|
||||
|
||||
@@ -19,7 +19,8 @@ $pdf->SetFillColor(232, 242, 255);
|
||||
$pdf->Cell(150, 6, $companyname, 1, 0, 'L', TRUE);
|
||||
$pdf->Ln();
|
||||
$pdf->Cell(40, 6, $addresspdf, 1, 0, 'L');
|
||||
$pdf->Cell(150, 6, $contactsinfoData['address'], 1, 0, 'L', TRUE);
|
||||
$pdf->Cell(150, 6, iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $contactsinfoData['address']), 1, 0, 'L', TRUE);
|
||||
|
||||
$pdf->Ln();
|
||||
$pdf->Cell(40, 6, $citytitleb, 1, 0, 'L');
|
||||
$pdf->Cell(55, 6, $contactsinfoData['city'], 1, 0, 'L', TRUE);
|
||||
|
||||
@@ -4,9 +4,15 @@ if (Auth::user()->hasRole('User')) :
|
||||
$nameuser = $_SESSION["nameuser"];
|
||||
//$pdf->Cell(120,6,'Intendo sottoporre questo modello a sorveglianza (presso CIMAC)',1,0,'C');
|
||||
//$pdf->Cell(70,6,$trfData['surveillanceselectoption'],1,0,'C',TRUE);
|
||||
if (!mb_check_encoding($statement, 'UTF-8')) {
|
||||
$statement = utf8_encode($statement); // Forza la codifica in UTF-8
|
||||
}
|
||||
|
||||
$statement = html_entity_decode($statement);
|
||||
$statement = iconv('UTF-8', 'windows-1252', $statement);
|
||||
$statement = mb_convert_encoding($statement, 'windows-1252', 'UTF-8');
|
||||
|
||||
//$statement = iconv('UTF-8', 'iso-8859-1', $statement);
|
||||
|
||||
$addstatement = html_entity_decode($addstatement);
|
||||
$addstatement = iconv('UTF-8', 'windows-1252', $addstatement);
|
||||
//$addstatement = iconv('UTF-8', 'iso-8859-1', $addstatement);
|
||||
|
||||
Reference in New Issue
Block a user