Note that utf8_decode is deprecated in php8 and new versions of MariaDb do not allow anymore non-utf8 chars to be stored in text fields (fatal errors are returned). For now, waiting an ideal solution to avoid these fatal errors, i converted text tables fields types into blob type.