PDF Content getting doubly-utf8 encoded with mPDF

Created on 18 April 2022, over 2 years ago
Updated 4 September 2023, over 1 year ago

Problem/Motivation

When using mPDF generator + the Drupal printable module, special characters are getting doubly utf8 encoded.

Steps to reproduce

Install drupal/printable version 2.1.1, mpdf library (v8.1.1) and this module. mPDF formatted PDFs show special characters incorrectly (e.g.

รขย€ยœPr

instead of a quote mark)

Proposed resolution

For me, removing the call to utf8_encode in the MpdfGenerator class fixes this issue, but I'm not sure if there's more work that needs to be done to make that fix robust across platforms and versions?

๐Ÿ› Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States t_stallmann

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024