php-doc-en/reference/mbstring/functions/mb-http-output.xml
2014-07-30 15:05:00 +00:00

86 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.mb-http-output" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>mb_http_output</refname>
<refpurpose>Set/Get HTTP output character encoding</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>mb_http_output</methodname>
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>mb_http_output()</initializer></methodparam>
</methodsynopsis>
<para>
Set/Get the HTTP output character encoding.
Output after this function is called will be converted from the set internal encoding to <parameter>encoding</parameter>.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>encoding</parameter></term>
<listitem>
<para>
If <parameter>encoding</parameter> is set,
<function>mb_http_output</function> sets the HTTP output character
encoding to <parameter>encoding</parameter>.
</para>
<para>
If <parameter>encoding</parameter> is omitted,
<function>mb_http_output</function> returns the current HTTP output
character encoding.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
If <parameter>encoding</parameter> is omitted,
<function>mb_http_output</function> returns the current HTTP output
character encoding. Otherwise,
&return.success;
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>mb_internal_encoding</function></member>
<member><function>mb_http_input</function></member>
<member><function>mb_detect_order</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->