php - TCPDF UTF-8. Lithuanian symbols not showing up -


i is using the latest TCPDF version (5.9). But there are some weird problems with encoding I need symbols of Lithuanian language like: Ä ?? Ä? ÄÅšųЫž but get some of it. Live like other ????? So what should I do ? I use the default bar font (this comes with TCPDF download).

Any help would be appreciated.

$ unicode parameter false And $ encoding parameter to 'ISO-8859-1' or some other character map.

Will help you:

Default for UTF-8 Unicode:

  $ pdf = New TCPDF (PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, is true , UTF-8 ', false);   

Constructor's example for European charsets: $ pdf = New TCPDF (PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, False, 'ISO-8859-1 ', false);

Comments