Handling QPrint via mbstring is deprecated; use quoted_printable_encode/quoted_printable_decode instead
Description
Since PHP 8.2, several pseudo-encodings were dropped from mbstring, including qprint (Quoted-Printable), a text encoding that represents non-ASCII bytes using =XX sequences.
This functionality overlapped with the dedicated quoted_printable_encode()/quoted_printable_decode() functions provided by the standard extension. It remains usable until PHP 9, when it will be removed entirely.
Example
<?php
mb_convert_encoding('foo', 'qprint');
?>
Alternatives
- Use
quoted_printable_encode()andquoted_printable_decode()instead ofmb_convert_encoding()with theqprintencoding.
Related error messages
- handling-html-entities-via-mbstring-is-deprecated;-use-htmlspecialchars,-htmlentities,-or-mb_encode_numericentity-mb_decode_numericentity-instead
- handling-base64-via-mbstring-is-deprecated;-use-base64_encode-base64_decode-instead
- handling-uuencode-via-mbstring-is-deprecated;-use-convert_uuencode-convert_uudecode-instead
Changed Behavior
This error may appear following an evolution in behavior, in previous versions. See mb_convert_encoding