mirror of
https://github.com/php/doc-ja.git
synced 2026-03-27 08:32:09 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@329547 c90b9560-bf6c-de11-be94-00142212c4b1
113 lines
3.3 KiB
XML
113 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: fa3df4d216316047474e54232add77dd670d968d Maintainer: takagi Status: ready -->
|
|
<!-- CREDITS: hirokawa -->
|
|
<refentry xml:id="function.mb-internal-encoding" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>mb_internal_encoding</refname>
|
|
<refpurpose>内部文字エンコーディングを設定あるいは取得する</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>mixed</type><methodname>mb_internal_encoding</methodname>
|
|
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>mb_internal_encoding()</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
内部文字エンコーディングを設定あるいは取得します。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>encoding</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
<parameter>encoding</parameter> は、HTTP 入力文字エンコーディング変換、
|
|
HTTP 出力文字エンコーディング変換および
|
|
mbstring モジュールの文字列関数においてデフォルトの文字エンコーディングとして使用されます。
|
|
マルチバイト正規表現用のエンコーディングは、ここで扱う内部文字エンコーディングとは別であることに注意してください。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
<parameter>encoding</parameter> が設定された場合、
|
|
&return.success;
|
|
このとき、マルチバイト正規表現用のエンコーディングは変更されません。
|
|
<parameter>encoding</parameter> が省略された場合、
|
|
現在の内部文字エンコーディング名を返します。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><function>mb_internal_encoding</function> の例</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
/* 内部文字エンコーディングをUTF-8に設定 */
|
|
mb_internal_encoding("UTF-8");
|
|
|
|
/* 現在の内部文字エンコーディングを表示 */
|
|
echo mb_internal_encoding();
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<!--
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
|
|
</refsect1>
|
|
-->
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>mb_http_input</function></member>
|
|
<member><function>mb_http_output</function></member>
|
|
<member><function>mb_detect_order</function></member>
|
|
<member><function>mb_regex_encoding</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
|
|
-->
|