Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

mb_convert_encoding() Has Deprecated Formats

4 previous formats have been removed from mb_convert_encoding() options: uuencode, base64, qprint, html.

They are all handled by dedicated PHP functions, which should be used instead of this one.

PHP code

<?php

echo mb_convert_encoding('foo', 'uuencode');
echo mb_convert_encoding('foo', 'base64');
echo mb_convert_encoding('foo', 'qprint');
echo mb_convert_encoding('foo', 'html');

?>

Before

Zm9vfoofoo

After

PHP Deprecated:  mb_convert_encoding(): Handling Uuencode via mbstring is deprecated; use convert_uuencode/convert_uudecode instead 

Deprecated: mb_convert_encoding(): Handling Uuencode via mbstring is deprecated; use convert_uuencode/convert_uudecode instead 
begin 0644 filename
#9F]O
PHP Deprecated:  mb_convert_encoding(): Handling Base64 via mbstring is deprecated; use base64_encode/base64_decode instead 

Deprecated: mb_convert_encoding(): Handling Base64 via mbstring is deprecated; use base64_encode/base64_decode instead 
Zm9vPHP Deprecated:  mb_convert_encoding(): Handling QPrint via mbstring is deprecated; use quoted_printable_encode/quoted_printable_decode instead 

Deprecated: mb_convert_encoding(): Handling QPrint via mbstring is deprecated; use quoted_printable_encode/quoted_printable_decode instead 
fooPHP Deprecated:  mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead 

Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead 
foo

PHP version change

This behavior was deprecated in 8.2.

This behavior changed in 8.2.

Error Messages

Extension

© 2023-2026, Damien Seguy - Exakat