X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fcarnet%2Fcontacts.pdf.inc.php;h=ceb6ca990758c73e021b92e3059d8dcfdea592b4;hb=4d2d6d18a318843e76a3a3ecb50446770ac9f788;hp=65c111676ca5915be2325e1295cded986f5fe43d;hpb=a7de4ef724d1a3b0bf978a50ce7cc9d23412c7a0;p=platal.git diff --git a/modules/carnet/contacts.pdf.inc.php b/modules/carnet/contacts.pdf.inc.php index 65c1116..ceb6ca9 100644 --- a/modules/carnet/contacts.pdf.inc.php +++ b/modules/carnet/contacts.pdf.inc.php @@ -90,8 +90,8 @@ class ContactsPDF extends FPDF $this->SetFont('Vera Sans', 'B', 20); $this->SetTextColor(230); $this->Rotate(45, 55, 190); - $this->Text(55, 190, "informations limitées à un usage"); - $this->Text(40, 210, "strictement personnel et non commercial"); + $this->Text(55, 190, utf8_decode("informations limitées à un usage")); + $this->Text(40, 210, utf8_decode("strictement personnel et non commercial")); $this->Rotate(0); $this->setLeftMargin(5); @@ -195,7 +195,7 @@ class ContactsPDF extends FPDF if (!empty($a['tels'])) { foreach ($a['tels'] as $tel) { if (!empty($tel['tel'])) { - $this->TableRow($tel['tel_type'], $tel['tel'], 'Mono'); + $this->TableRow(utf8_decode($tel['tel_type']), $tel['tel'], 'Mono'); } } } @@ -217,7 +217,7 @@ class ContactsPDF extends FPDF } if ($a['tel']) { - $this->TableRow('Téléphone', $a['tel'], 'Mono'); + $this->TableRow(utf8_decode('Téléphone'), $a['tel'], 'Mono'); } if ($a['fax']) { $this->TableRow('Fax', $a['fax'], 'Mono'); @@ -317,6 +317,11 @@ class ContactsPDF extends FPDF foreach ($x['adr'] as $a) { $self->Space(); + foreach ($a as &$value) { + if (is_utf8($value)) { + $value = utf8_decode($value); + } + } $self->Address($a); } @@ -327,6 +332,11 @@ class ContactsPDF extends FPDF { continue; } + foreach ($a as &$value) { + if (is_utf8($value)) { + $value = utf8_decode($value); + } + } $self->Space(); $self->AddressPro($a); }