- mb_convert_encoding: documentation ( source)
<?php
foreach ([
'BASE64',
'UUENCODE',
'HTML-ENTITIES',
'Quoted-Printable',
'7bit',
'8bit',
] as $encoding) {
echo "$encoding: ", mb_convert_encoding('a', $encoding, 'HTML-ENTITIES'), PHP_EOL;
}