- Added note that STOP is the default mode

- Small corrections


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@241621 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nick Berard 2007-08-20 04:29:02 +00:00
parent 6164d642ad
commit 0d7ada19cf

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.unicode-set-error-mode">
<refnamediv>
<refname>unicode_set_error_mode</refname>
<refpurpose>Set the error mode for Unicode conversions</refpurpose>
<refpurpose>Set the error mode for strings conversions</refpurpose>
</refnamediv>
<refsect1 role="description">
@ -14,9 +14,10 @@
<methodparam><type>int</type><parameter>mode</parameter></methodparam>
</methodsynopsis>
<para>
This function sets the error mode for string conversions. An error can occur
during conversion when an illegal character is encountered or if a character
cannot be represented into the new encoding.
This function sets the error mode for string conversions between different
encodings. An error can occur during conversion when an illegal character
is encountered or if a character cannot be represented into the new encoding.
By default, when an error is encountered, the conversion stops.
</para>
</refsect1>
@ -30,11 +31,10 @@
<para>
The <parameter>direction</parameter> sets the conversion direction to
which the error mode will apply. This can either be
<constant>FROM_UNICODE</constant>, which will set
the error mode for conversions from a <type>unicode</type> string to a
binary string in another encoding or <constant>TO_UNICODE</constant>,
which will set the error mode for conversions from a binary string to an
<type>unicode</type> string.
<constant>FROM_UNICODE</constant>, which will set the error mode for
conversions from a <type>unicode</type> string to a binary string
or <constant>TO_UNICODE</constant>, which will set the error mode
for conversions from a binary string to a <type>unicode</type> string.
</para>
</listitem>
</varlistentry>
@ -61,7 +61,7 @@
<constant>U_CONV_ERROR_STOP</constant>
</entry>
<entry>
Stop the conversion.
Stop the conversion. This is the default mode.
</entry>
</row>
<row>