79093553

Date: 2024-10-16 10:13:12
Score: 1.5
Natty:
Report link

Seems like an encoding issue. Unfortunately, you provided a very small amount of information. Are you implementing Smalot PdfParser in a plain PHP project, or are you using a framework? If you are using one, did you define UTF-8 for the whole project?

The malformation of your output may happen in many parts of the process.

  1. Check the encoding of the PDF document itself: UTF-8, ISO-8859-1?
  2. Smalot PdfParser does not seem to have a parameter to specify the encoding. Try to know more about the parsing of the pdf. (OCR method or dump plaintext)
  3. Check your PHP print. (For exemple try to store in a var the text you want to print (BanegÄrd) and use var_dump(). Check if it's well formated.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Reverse_side_