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

Remove usage of deprecated utf8_encode function #155

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

edsrzf
Copy link
Contributor

@edsrzf edsrzf commented Feb 22, 2023

utf8_encode is deprecated in PHP 8.2. Fortunately, we're already making use of iconv, and it's straightforward enough to use iconv to convert from ISO-8859-1 instead of utf8_encode.

I have to admit I'm not entirely clear on the purpose of this conversion. It appears to have been added quite a while ago in a08a28a, and may not be relevant anymore in newer PHP versions? Hard for me to say.

utf8_encode is deprecated in PHP 8.2. Fortunately, we're already making
use of iconv, and it's straightforward enough to use iconv to convert
from ISO-8859-1 instead of utf8_encode.
Copy link

@grugcrood82 grugcrood82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@redJ4y redJ4y merged commit d760ab9 into MindscapeHQ:master Feb 22, 2023
@edsrzf edsrzf deleted the rm-utf8-encode branch February 22, 2023 01:56
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 this pull request may close these issues.

None yet

3 participants