mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
added not for PHP 4.3.3.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@138954 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
02c9c68afc
commit
73e8e37698
2 changed files with 32 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<section id="mbstring.configuration">
|
||||
&reftitle.runtime;
|
||||
&extension.runtime;
|
||||
|
@ -159,7 +159,8 @@
|
|||
<programlisting>
|
||||
<![CDATA[
|
||||
; Set default language
|
||||
mbstring.language = English; Set default language to English (default)
|
||||
mbstring.language = Neutral; Set default language to Neutral(UTF-8) (default)
|
||||
mbstring.language = English; Set default language to English
|
||||
mbstring.language = Japanese; Set default language to Japanese
|
||||
|
||||
;; Set default internal encoding
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<reference id="ref.mbstring">
|
||||
<title>Multi-Byte String Functions</title>
|
||||
<titleabbrev>Multi-Byte String</titleabbrev>
|
||||
|
@ -28,8 +28,11 @@
|
|||
<para>
|
||||
Since PHP is basically designed for ISO-8859-1, some multi-byte
|
||||
character encoding does not work well with PHP. Therefore, it is
|
||||
important to set <literal>mbstring.internal_encoding</literal> to
|
||||
a character encoding that works with PHP.
|
||||
important to set
|
||||
<literal>mbstring.language</literal> to appropriate language
|
||||
(i.e. "Japanese" for japanese) and
|
||||
<literal>mbstring.internal_encoding</literal> to a character
|
||||
encoding that works with PHP.
|
||||
</para>
|
||||
<para>
|
||||
PHP4 Character Encoding Requirements
|
||||
|
@ -114,13 +117,29 @@ JIS, SJIS
|
|||
encoding conversion if binary data is used for HTTP
|
||||
input/output.
|
||||
</para>
|
||||
<para>
|
||||
If <literal>enctype</literal> for HTML form is set to
|
||||
<literal>multipart/form-data</literal>,
|
||||
<literal>mbstring</literal> does not convert character encoding
|
||||
in POST data. If it is the case, strings are needed to be
|
||||
converted to internal character encoding.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
For PHP 4.3.2 or earlier,
|
||||
if <literal>enctype</literal> for HTML form is set to
|
||||
<literal>multipart/form-data</literal>,
|
||||
<literal>mbstring</literal> does not convert character encoding
|
||||
in POST data. If it is the case, strings are needed to be
|
||||
converted to internal character encoding.
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
Since PHP 4.3.3,
|
||||
if <literal>enctype</literal> for HTML form is set to
|
||||
<literal>multipart/form-data</literal>, and,
|
||||
<literal>mbstring.encoding_translation</literal> is set to
|
||||
On in &php.ini:
|
||||
POST variables and uploaded filename will be converted to
|
||||
internal character encoding.
|
||||
But, characters specified in 'name' of HTML form will not be
|
||||
converted.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
|
|
Loading…
Reference in a new issue