mb_preferred_mime_name
mb_preferred_mime_name
Get MIME charset string
**mb_preferred_mime_name** string $encoding
Get a MIME charset for a specific encoding.
string
encodingThe encoding being checked.
The MIME for character encoding
,
or false if no charset is preferred for the given .
charset``string``encoding``encoding
Voorbeeld: example
<?php
$outputenc = "sjis-win";
mb_http_output($outputenc);
ob_start("mb_output_handler");
header("Content-Type: text/html; charset=" . mb_preferred_mime_name($outputenc));
?>