I have to encode this $txt[$y]
bellow to utf-8 or ISO-8859-1. I use tFPDF extend with font with have special letters. Right now string is correctly displayed in the cell, but when I use special letters like ś,й,é I can see only question marks:
function magia($txt='', $border=0, $ln=0, $align='C', $fill=false, $link='', $scale=false, $force=true){
$str_width = $this->GetStringWidth($txt);
$len = strlen($txt);
for ($y = 0; $y < $len; $y++){
$this->Cell(6,6,$txt[$y],0,0,'C');
}
}