X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fcarnet%2Fcontacts.pdf.inc.php;h=df02258e32e731135118ea0205ae3252e5d9287f;hb=295d4c48a12e49274135d9f781862a45e5b8c5dc;hp=e50bf96e321f195767d50f4675e5402be42931e3;hpb=93c099e155700879064370905bde12a755feb657;p=platal.git diff --git a/modules/carnet/contacts.pdf.inc.php b/modules/carnet/contacts.pdf.inc.php index e50bf96..df02258 100644 --- a/modules/carnet/contacts.pdf.inc.php +++ b/modules/carnet/contacts.pdf.inc.php @@ -1,6 +1,6 @@ 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); @@ -215,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'); @@ -315,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); } @@ -325,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); } @@ -339,7 +351,7 @@ class ContactsPDF extends FPDF return $self; } - } +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>