I was wondering if it is possible to somehow detect what encode type text is using for example if there is word "Šanęrt", it's UTF-8 and if it's "Projekto UžduoÄ•ių Ataskaita" would write what encode it is. Because my site creates PDF file, and I can't find why it writes ž - these symbols and not letters.
And I think, if I could find out what encode it is I could decode to UTF-8 to write normally. For example if it is UžduoÄ•ių, normal it would be - Užduočių. Here is the simple code:
$pdf->ezText("\n" . $AppUI->_('Project Completed Task Report'), 12);
When locale set to Lithuanian it writes Pabaigto Projekto Užduoĕių Ataskaita
.