Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utf8_en/decode deprecation #665

Open
amazeika opened this issue Sep 4, 2023 · 0 comments · May be fixed by #714
Open

utf8_en/decode deprecation #665

amazeika opened this issue Sep 4, 2023 · 0 comments · May be fixed by #714
Assignees
Milestone

Comments

@amazeika
Copy link
Member

amazeika commented Sep 4, 2023

These two functions are deprecated on PHP 8.2 and going to be removed on PHP 9.

We need to replace these.

Solution

Encode

mb_convert_encoding($string, "UTF-8", mb_detect_encoding($string))

Decode

mb_convert_encoding($string, "ISO-8859-1", "UTF-8")

source: https://stackoverflow.com/questions/74865684/php-utf8-en-decode-deprecated-what-can-i-use

Implementation

Make use of https://github.com/joomlatools/joomlatools-framework/blob/master/code/libraries/joomlatools/library/legacy.php for re-defining the functions when removed.

Support tickets

@amazeika amazeika added this to the 4.1 milestone Nov 23, 2023
@jebbdomingo jebbdomingo self-assigned this Aug 29, 2024
@jebbdomingo jebbdomingo modified the milestones: 5.0, 5.1 Aug 29, 2024
@jebbdomingo jebbdomingo mentioned this issue Aug 29, 2024
@github-actions github-actions bot linked a pull request Aug 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants