How to write french in fpdf

187 Views Asked by At

i need to write some specific french caracteres like é è ê ... etc

this is the cell :

$this->Cell(50,7,"Référence ".$info["reference"]);

and this is the output :

enter image description here

Is there a solution ?

1

There are 1 best solutions below

0
On BEST ANSWER

You can use utf8_decode()

$this->Cell(50,7,utf8_decode("Référence ".$info["reference"])); 

enter image description here