How can you set unicode to ISO-8859-1
so chars like æ, ø, å will work? Now all special chars are ignored in text strings
new TCPDF('P', 'mm', 'A4', true, 'ISO-8859-1', false, true);
How can you set unicode to ISO-8859-1
so chars like æ, ø, å will work? Now all special chars are ignored in text strings
new TCPDF('P', 'mm', 'A4', true, 'ISO-8859-1', false, true);
If you have your text in utf-8, use iconv first:
$string_iso = iconv('utf-8','iso-8859-1',$string_utf8);
If it's not the case, ensure that you are using proper font. I have just checked times
and it have all special characters from iso-8859-1.
Edit:
You will also have to set $unicode = FALSE
in TCPDF
constructor:
new TCPDF('P', 'mm', 'A4', FALSE, 'ISO-8859-1', false, true);