Skip to content
Advertisement

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 ?

Advertisement

Answer

You can use utf8_decode()

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

enter image description here

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement