0

I am getting marathi value in an array. I want to print it in PDF using FPDF. But all i am getting is "इसरॉयà"

I am using utf8 charset which supports Marathi font and many other. But its also not working well.

Please give me the solution to save marathi data in PDF using FPDF.

Sample marathi data(if you want it for testing purpose) - खालीलपैकी कोणते नाटके हर्षवर्धानाने लिहिली

Thanks.

O. Jones
  • 103,626
  • 17
  • 118
  • 172
  • Are you aware of tFPDF? http://www.fpdf.org/en/script/script92.php – O. Jones Aug 10 '16 at 11:35
  • @Ollie Jones I saw tFPDF. I tried to run with it. But its also generating square like [][][][][] – user3831445 Aug 10 '16 at 11:39
  • @Ollie Jones If i copy these squares and paste it somewhere else, it gives me what i want. Its just not generating in PDF. – user3831445 Aug 10 '16 at 11:40
  • Those squares -- they're called replacement glyphs -- mean your pdf file does not contain the correct codepoints from the font. Have you instructed tpdf to load the font with glyphs for your Marathi codepoints? – O. Jones Aug 10 '16 at 11:53
  • @Ollie Jones No. Frankly speaking, i didnt get what you asked for. But I didnt do anything like that. Can you please tell me how to do it to get Marathi font..? – user3831445 Aug 10 '16 at 12:13
  • Marked as dup -- see "Mojibake" in that Q&A. – Rick James Aug 13 '16 at 18:27

0 Answers0