ILIAS
ILIAS copied to clipboard
Refinery: Encoding
This PR adds a UTF8 string transformation to the refinery which can be used to replace utf8_encode
calls in ILIAS, see https://github.com/ILIAS-eLearning/ILIAS/commit/9f1b9b68d97943050fb74c5ca8e4663196f4ac3f
examples how to use that are in https://github.com/ILIAS-eLearning/ILIAS/commit/b3f364b97648fe69c331dc039e1c381646f5192f which fixes the issues:
https://mantis.ilias.de/view.php?id=40543 https://mantis.ilias.de/view.php?id=40542
a second Transformation
for ISO-8859-1
should be introduced as well to replace utf8_decode
calls.
Fixed tests in https://github.com/ILIAS-eLearning/ILIAS/pull/7124/commits/023d88838ebb38db9e04295529f93758eb5e74dc
Thank you very much for the quick feedback!
yes i think it is a bit urgent, because i would like to remove the deprecations of PHP8.2 before ILIAS 9 is finished. therefore i have made the (very useful!) changes as requested:
- Naming 1: new is encoding a group, two methods are now offered,
latin1ToUtf8
andasciiToUtf8
, as these are probably the most common according to a short research. - Detection: is now abolished and you explicitly select from and to by choosing the method on the group
- Naming 2: is adapted accordingly, see above
Hi @chfsx,
didn't have this on my radar. Feel free to ping me and/or @mjansenDatabay via comment next time.
Will have a look into this now.
Kind regards!
I have merged this manually after resolving conflicts. Thanks a lot! Good stuff.
Picked to trunk!