0

Im using FPDF to create some pdf documents, filename is taken from a field $fullname. In document everything works fine , i get all the letter which i need with tFPDF. Letters: Š Đ Č Ć Ž

But the problem is when the file is saved. Like i said the file name takes the $fullname, if i type inside a field my name " Elvedin Salkanović " i get the same in document, but name of the file on my localhost is " Elvedin Salkanović.pdf " So instead of ć i got ć. And i reallz cant find the answer how to fix it. I need utf-8 to be used for filename. Btw I`m not an expert in php, so it would be nice if someone explain me deatailed.

2 Answers2

0

$filename=iconv("UTF-8", "ISO-8859-9//TRANSLIT",$filename);

Mustafa
  • 1
  • 2
0

You can try:

$outputname = iconv('UTF-8', 'ASCII//TRANSLIT', $fullname);

Source

CamilleFF
  • 76
  • 1
  • 7