Skip to content

Fix PHP 8.2 deprecations #60

@seanBlommaert

Description

@seanBlommaert

Because of the misleading function names, lack of error messages and warnings, and the lack of support for character encodings other than ISO-8859-1, utf8_encode and utf8_decode functions are deprecated in PHP 8.2.

This is being used in \DaveChild\TextStatistics\Text::cleanText()

We can replace it with the code below, or maybe see if we can remove it?
$strText = mb_convert_encoding($strText, 'ISO-8859-1', mb_detect_encoding($strText));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions