您的位置:寻梦网首页编程乐园PHP 编程PHP5中文手册
PHP5中文手册

unicode_set_subst_char

(No version information available, might be only in CVS)

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 ?.

参数

character

The substitution character to use.

返回值

如果成功则返回 TRUE,失败则返回 FALSE

错误/异常

Emits a E_WARNING level error if character is invalid.

注释

Warning

本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。