diff --git a/reference/unicode/functions/unicode-set-error-mode.xml b/reference/unicode/functions/unicode-set-error-mode.xml index 66bd8b37ae..420b4bec81 100644 --- a/reference/unicode/functions/unicode-set-error-mode.xml +++ b/reference/unicode/functions/unicode-set-error-mode.xml @@ -1,9 +1,9 @@ - + unicode_set_error_mode - Set the error mode for Unicode conversions + Set the error mode for strings conversions @@ -14,9 +14,10 @@ intmode - 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. @@ -30,11 +31,10 @@ The direction sets the conversion direction to which the error mode will apply. This can either be - FROM_UNICODE, which will set - the error mode for conversions from a unicode string to a - binary string in another encoding or TO_UNICODE, - which will set the error mode for conversions from a binary string to an - unicode string. + FROM_UNICODE, which will set the error mode for + conversions from a unicode string to a binary string + or TO_UNICODE, which will set the error mode + for conversions from a binary string to a unicode string. @@ -61,7 +61,7 @@ U_CONV_ERROR_STOP - Stop the conversion. + Stop the conversion. This is the default mode.