unicode_set_subst_char
(PHP 6 >= 6.0.0)
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 unconvertible 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 릴리즈에서 예고 없이 변경할 수 있습니다. 이 함수의 사용에 관한 것은 사용자 책임입니다.
참고
- unicode_set_error_mode() - Set the error mode for strings conversions
- unicode_get_error_mode() - Get the error mode for strings conversions
- unicode_encode() - Convert a unicode string in any encoding
- unicode_decode() - Convert a binary string into a Unicode string
unicode_set_subst_char
There are no user contributed notes for this page.
