phppdffpdffrench

How to write french in fpdf


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 ?


Solution

  • You can use utf8_decode()

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

    enter image description here