Needs review
Project:
Image Field in Text (if none yet)
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
3 Apr 2026 at 14:19 UTC
Updated:
3 Apr 2026 at 14:25 UTC
Jump to comment: Most recent
Deprecated function: Function utf8_decode() is deprecated since 8.2, visit the php.net documentation for various alternatives in imagefieldintextifnone_strpos_nth() (line 171 of /home/vhfa_test/site/web/modules/contrib/imagefieldintextifnone/imagefieldintextifnone.module)
mb_convert_encoding($utf8_string, 'ISO-8859-1', 'UTF-8'); looks like the most straightforward fix. Provides same locations as utf8_decode did for character starts testing with ç and 😵💫 etc in a string.
Possibly we should be reading the ISO type from the text we are getting?
Comments
Comment #2
mlncn commentedReally wish these requests had gone somewhere:
https://bugs.php.net/bug.php?id=80166
https://news-web.php.net/php.internals/111985
Comment #3
mlncn commented