سؤال

I am receiving these Unknown characters on my PDF Water mark,

How can i convert them into original form ?

This is the orignal Input:

$pdf->Write(0, utf8_encode('àexception de') );

But in PDF it is showing me something like this:

enter image description here

How can I fix this ?

هل كانت مفيدة؟

المحلول

Don't utf8_encode the string. Make sure you're passing the string in an encoding the PDF library expects. Figure out what that is exactly. Read What you need to know about encodings to work with text.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top