Home > OS >  How to write french in fpdf
How to write french in fpdf

Time:03-09

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 ?

CodePudding user response:

You can use utf8_decode()

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

enter image description here

  • Related