2

I'm using https://github.com/farjadtahir/pdf-invoicr.

Problem is when I add diacritics to $invoice->setFrom() (or anywhere else) diacritics not showing up.

I tried $invoice->setFrom(array(iconv("UTF-8", "ISO-8859-1","ÆØÅ")from this comments but still diacritics not working.

Next I tried https://stackoverflow.com/a/21555497/2893691 again not working.

So, how to finally convert ľščťžýáíé to UTF-8 in invoicr?

EDIT - NEW INFO

I'm used mb_detect_encoding() and return is UTF-8 already. But when I try show for example string ičo123 the result is empty. Not showing.

I tried add header('Content-Type: text/html; charset=utf-8'); and still diacritics not working.

EDIT 2 - NEW INFO

I tried this script http://www.fpdf.org/en/script/script92.php and still not working. Here is screenshot of downloaded example from link above:

enter image description here

3
  • Convert it into HTML Entities and do it. That's the best I can think of. Commented Sep 9, 2016 at 11:10
  • 1
    FPDF not allow HTML Entities. Č is in PDF file Č Commented Sep 9, 2016 at 14:09
  • Problem solved - Used script from EDIT 2, removed all iconv() functions from phpinvoice.php file. Commented Sep 10, 2016 at 17:45

1 Answer 1

2

Problem solved - Used script from EDIT 2 and removed all iconv() functions from phpinvoice.php file.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.