2007-12-07 01:14:26 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 07:57:45 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-07 01:14:26 +00:00
|
|
|
<refentry xml:id="function.mb-internal-encoding" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
2007-09-20 20:55:38 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>mb_internal_encoding</refname>
|
|
|
|
<refpurpose>Set/Get internal character encoding</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>mixed</type><methodname>mb_internal_encoding</methodname>
|
2009-01-13 12:47:53 +00:00
|
|
|
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>mb_internal_encoding()</initializer></methodparam>
|
2007-09-20 20:55:38 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2007-12-07 01:14:26 +00:00
|
|
|
Set/Get the internal character encoding
|
2007-09-20 20:55:38 +00:00
|
|
|
</para>
|
2007-12-07 01:14:26 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
2007-09-20 20:55:38 +00:00
|
|
|
<para>
|
2007-12-07 01:14:26 +00:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>encoding</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<parameter>encoding</parameter> is the character encoding name
|
|
|
|
used for the HTTP input character encoding conversion, HTTP output
|
|
|
|
character encoding conversion, and the default character encoding
|
|
|
|
for string functions defined by the mbstring module.
|
2013-07-24 08:52:13 +00:00
|
|
|
You should notice that the internal encoding is totally different from the one for multibyte regex.
|
2007-12-07 01:14:26 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2007-09-20 20:55:38 +00:00
|
|
|
</para>
|
2007-12-07 01:14:26 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
2007-09-20 20:55:38 +00:00
|
|
|
<para>
|
2007-12-07 01:14:26 +00:00
|
|
|
If <parameter>encoding</parameter> is set, then
|
|
|
|
&return.success;
|
2013-02-22 15:47:01 +00:00
|
|
|
In this case, the character encoding for multibyte regex is NOT changed.
|
2007-12-07 01:14:26 +00:00
|
|
|
If <parameter>encoding</parameter> is omitted, then
|
|
|
|
the current character encoding name is returned.
|
2007-09-20 20:55:38 +00:00
|
|
|
</para>
|
2007-12-07 01:14:26 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
2007-09-20 20:55:38 +00:00
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title><function>mb_internal_encoding</function> example</title>
|
|
|
|
<programlisting role="php">
|
2002-04-15 00:12:54 +00:00
|
|
|
<![CDATA[
|
2003-07-16 17:25:02 +00:00
|
|
|
<?php
|
2002-04-15 00:12:54 +00:00
|
|
|
/* Set internal character encoding to UTF-8 */
|
|
|
|
mb_internal_encoding("UTF-8");
|
|
|
|
|
|
|
|
/* Display current internal character encoding */
|
|
|
|
echo mb_internal_encoding();
|
2003-07-16 17:25:02 +00:00
|
|
|
?>
|
2002-04-15 00:12:54 +00:00
|
|
|
]]>
|
2007-09-20 20:55:38 +00:00
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
2007-12-07 01:14:26 +00:00
|
|
|
</refsect1>
|
|
|
|
|
2011-12-21 15:16:40 +00:00
|
|
|
<!--
|
2007-12-07 01:14:26 +00:00
|
|
|
<refsect1 role="notes">
|
|
|
|
&reftitle.notes;
|
|
|
|
|
|
|
|
</refsect1>
|
2011-12-21 15:16:40 +00:00
|
|
|
-->
|
2007-12-07 01:14:26 +00:00
|
|
|
|
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
2007-09-20 20:55:38 +00:00
|
|
|
<para>
|
2007-12-07 01:14:26 +00:00
|
|
|
<simplelist>
|
|
|
|
<member><function>mb_http_input</function></member>
|
|
|
|
<member><function>mb_http_output</function></member>
|
|
|
|
<member><function>mb_detect_order</function></member>
|
2013-02-22 15:47:01 +00:00
|
|
|
<member><function>mb_regex_encoding</function></member>
|
2007-12-07 01:14:26 +00:00
|
|
|
</simplelist>
|
2007-09-20 20:55:38 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-12-07 01:14:26 +00:00
|
|
|
|
2007-09-20 20:55:38 +00:00
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-04-15 00:12:54 +00:00
|
|
|
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
|
|
|
|
-->
|