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>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to