Deprecation: #78670 - Deprecated CharsetConverter methods
See forge#78670
Description
The symfony/
package provides us with mb_
functionality in all installations.
Therefore some methods of Charset
have been marked as deprecated, since the equivalent mb_
functions can be used directly:
strlen
: use() mb_
directlystrlen () substr
: use() mb_
directlysubstr () strtrunc
: use() mb_
directlystrcut () conv
: useCapitalize () mb_
directlyconvert_ case () conv_
: usecase () mb_
orstrtolower () mb_
directlystrtoupper () utf8_
: usesubstr () mb_
directlysubstr () utf8_
: usestrlen () mb_
directlystrlen () utf8_
: usestrtrunc () mb_
directlystrcut () utf8_
: usestrpos () mb_
directlystrpos () utf8_
: usestrrpos () mb_
directlystrrpos () utf8_
: no replacementbyte2char_ pos () euc_
: usestrtrunc () mb_
directlystrcut () euc_
: usesubstr () mb_
directlysubstr () euc_
: usestrlen () mb_
directlystrlen () euc_
: no replacementchar2byte_ pos () $four
: no replacementByte Sets
Impact
Calling the deprecated Charset
methods will trigger a deprecation log entry.
Affected Installations
Any installation using third party extensions leveraging the mentioned Charset
functionality.
Migration
Use the equivalent mb_string methods directly as denoted above.