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

Switch to mb_convert_encoding to fix utf8_encode deprecation warning #1418

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

anniel-stripe
Copy link
Contributor

@anniel-stripe anniel-stripe commented Jan 3, 2023

Fix for #1415

Following https://php.watch/versions/8.2/utf8_encode-utf8_decode-deprecated#utf8_encode-iso8859-mbstring, this PR replaces our previous usage of utf8_encode with mb_convert_encoding.

utf8_encode previously converted character encodings from ISO-8859-1 to UTF-8, even if the source text was not encoded in ISO-8859-1. This fix retains that functionality.

@anniel-stripe anniel-stripe merged commit c7c4acc into master Jan 4, 2023
@anniel-stripe anniel-stripe deleted the anniel-deprecated-utf8_encode branch January 4, 2023 19:11
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

2 participants