Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Unicode Functions : unicode_set_subst_char

unicode_set_subst_char

Set the substitution character for string conversion errors ()
bool unicode_set_subst_char ( unicode character )

When converting a string from or to unicode, an invalid or unconvertable character may be encountered. When the conversion error mode is set to U_CONV_ERROR_SUBST, the character that caused the error is substituted by a character set by this function. The default substitution character is ?.

Parameters

character

The substitution character to use.

Return Values

Returns TRUE on success or FALSE on failure.

Errors/Exceptions

Emits a E_WARNING level error if character is invalid.

Notes

Warning:

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

Change Language


Follow Navioo On Twitter
unicode_decode
unicode_encode
unicode_get_error_mode
unicode_get_subst_char
unicode_semantics
unicode_set_error_mode
unicode_set_subst_char
eXTReMe Tracker