[PHP 8.2] Call to deprecated function utf8_encode() at ./src/Plugin/migrate_plus/data_parser/Json.php Line 42

Created on 27 November 2023, 7 months ago
Updated 29 November 2023, 7 months ago

Problem/Motivation

I am not sure if this was posted before or not, I was doing some migration tests on a D10.0.11 instance running on PHP 8.2 and I got this deprecation warning:

modules/contrib/migrate_plus/src/Plugin/migrate_plus/data_parser/Json.php 42 Call to deprecated function utf8_encode().

Steps to reproduce

- Use the module Upgrade Status β†’ to scan the module migrate_plus

Proposed resolution

The PHP documentation recommends using the multibyte string functions that are part of the mbstring extension for handling multibyte encodings, including UTF-8. For example, the mb_convert_encoding() function can be used to convert strings between different character encodings, including to and from UTF-8.

https://php.watch/versions/8.2/utf8_encode-utf8_decode-deprecated

Remaining tasks

- Attached an inital patch for this.

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

6.0

Component

Plugins

Created by

πŸ‡¨πŸ‡¦Canada danrod

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

Comments & Activities

Production build 0.69.0 2024