cvs: phpdoc /en/reference/mbstring/functions mb-output-handler.xml

From: Date: Sun, 03 Nov 2002 12:31:02 +0000
Subject: cvs: phpdoc /en/reference/mbstring/functions mb-output-handler.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969349402@lists.php.net to get a copy of this message
hirokawa Sun Nov 3 07:31:02 2002 EDT Modified files: /phpdoc/en/reference/mbstring/functions mb-output-handler.xml Log: output encoding behavior changed in PHP 4.3 Index: phpdoc/en/reference/mbstring/functions/mb-output-handler.xml diff -u phpdoc/en/reference/mbstring/functions/mb-output-handler.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-output-handler.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-output-handler.xml:1.2 Wed Apr 17 02:39:59 2002 +++ phpdoc/en/reference/mbstring/functions/mb-output-handler.xml Sun Nov 3 07:31:01 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-output-handler"> <refnamediv> @@ -63,12 +63,26 @@ </example> </para> <note> - <para> - If you want to output some binary data such as image from PHP - script, you must set output encoding to &quot;pass&quot; using - <function>mb_http_output</function>. - </para> - </note> + <para> + If you want to output some binary data such as image from PHP + script with PHP 4.3.0 or later, Content-Type: header must be send + using <function>header</function> before any binary data was send + to client (e.g. header("Content-Type: image/png")). + If Content-Type: header was send, output character encoding + conversion will not be performed. + </para> + <para> + Note that if 'Content-Type: text/*' was send using + <function>header</function>, the sending data is regarded as text, + encoding conversion will be performed using character encoding + settings. + </para> + <para> + If you want to output some binary data such as image from PHP + script with PHP 4.2.x or earlier, you must set output encoding to + &quot;pass&quot; using <function>mb_http_output</function>. + </para> + </note> <para> See also <function>ob_start</function>. </para>

« previous php.doc (#969349402) next »