Search Results
mb_output_handler () is ob_start () callback function. mb_output_handler () converts characters in the output buffer from internal character encoding to HTTP output character encoding.
PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8 mb_output_handler - Callback function converts character encoding in output buffer Manual
mb_output_handler () est la fonction à fournir à ob_start (). mb_output_handler () convertit les caractères envoyés au client dans l'encodage paramétré avec mb_http_output ().
If Content-Type: header is sent, output character encoding conversion will not be performed. Note that if 'Content-Type: text/*' is sent, the content body is regarded as text; conversion will take place. If you want to output binary data, such as an image, using PHP 4.2.x or earlier, you must set output encoding to "pass" using mb_http_output ().
Simple usage example of `mb_output_handler ()`. The `mb_output_handler` function is a callback function used in PHP to convert the character encoding of the output buffer. It enables the conversion of text in one encoding to another encoding, allowing for proper display and handling of different character sets.
PHP comes with two internal output handlers: "default output handler" and "URL-Rewriter" (which is integrated into its own output buffer and only up to two instances of it can be started). The bundled extensions include four additional output handlers: mb_output_handler (), ob_gzhandler (), ob_iconv_handler (), ob_tidyhandler ().
mb_output_handler () is ob_start () callback function. mb_output_handler () converts characters in the output buffer from internal character encoding to HTTP output character encoding.
