Deprecated function: Function utf8_encode()

Created on 7 November 2023, about 1 year ago
Updated 10 November 2023, about 1 year ago

Problem/Motivation

PHP 8.2

Deprecated function: Function utf8_encode() is deprecated in Drupal\pdf_api\Plugin\PdfGenerator\MpdfGenerator->preGenerate() (line 214 of modules/contrib/pdf_api/src/Plugin/PdfGenerator/MpdfGenerator.php).

Steps to reproduce

Generate a PDF. Then load a page where messages are printed.

Proposed resolution

Replace function with mb_convert_encoding() or https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Util... See https://php.watch/versions/8.2/utf8_encode-utf8_decode-deprecated

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Fixed

Version

2.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States agentrickard Georgia (US)

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

Comments & Activities

Production build 0.71.5 2024