Closed JanPetterMG closed 3 years ago
Currently we're using both mbstring and iconv without even requiring them in the composer.json.
mbstring
iconv
composer.json
The spec is expecting UTF-8, everything else is just an bonus if we can read and parse it properly.
How about requiring mbstring only , and then use whatever is available, if anything is available at all?
UConverter
utf8_encode
ISO-8859-1
Currently we're using both
mbstring
andiconv
without even requiring them in thecomposer.json
.mbstring
(there's no way around).iconv
dependency (shall not be required, is optional)The spec is expecting UTF-8, everything else is just an bonus if we can read and parse it properly.
How about requiring
mbstring
only , and then use whatever is available, if anything is available at all?UConverter
if available (optional)iconv
only if it's available (shall not be required in any way).utf8_encode
if available AND the encoding isISO-8859-1
(optional)mbstring
(there's no way around).