mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
output encoding behavior changed in PHP 4.3
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@102404 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
54827eeac7
commit
930f8d9122
1 changed files with 21 additions and 7 deletions
|
@ -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 @@ ob_start("mb_output_handler");
|
|||
</example>
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
If you want to output some binary data such as image from PHP
|
||||
script, you must set output encoding to "pass" 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
|
||||
"pass" using <function>mb_http_output</function>.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
See also <function>ob_start</function>.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue