<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 -->
  <refentry xml:id="function.mb-internal-encoding" xmlns="http://docbook.org/ns/docbook">
   <refnamediv>
    <refname>mb_internal_encoding</refname>
    <refpurpose>
     Set/Get internal character encoding
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>mixed</type><methodname>mb_internal_encoding</methodname>
      <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>mb_internal_encoding</function> sets internal character
     encoding to <parameter>encoding</parameter> If parameter is
     omitted, it returns current internal encoding.
    </para>
    <para>
     <parameter>encoding</parameter> is used for HTTP input character
     encoding conversion, HTTP output character encoding conversion
     and default character encoding for string functions defined by
     mbstring module.
    </para>
    <para>
     <parameter>encoding</parameter>: Character encoding name
    </para>
    <para>
     Return Value: If <parameter>encoding</parameter> is
     set,<function>mb_internal_encoding</function> returns
     &true; for success, otherwise returns
     &false;. If <parameter>encoding</parameter> is
     omitted, it returns current character encoding name.
    </para>
    <para>
     <example>
      <title><function>mb_internal_encoding</function> example</title>
      <programlisting role="php">
<![CDATA[
<?php
/* Set internal character encoding to UTF-8 */
mb_internal_encoding("UTF-8");

/* Display current internal character encoding */
echo mb_internal_encoding();
?>
]]>
      </programlisting>
     </example>
    </para>
    <para>
     See also <function>mb_http_input</function>,
     <function>mb_http_output</function> and
     <function>mb_detect_order</function>.
    </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:"../../../../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
-->