Unicode Funkcje
PHP Manual

unicode_set_subst_char

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

unicode_set_subst_charSet the substitution character for string conversion errors

Opis

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

Parametry

character

The substitution character to use.

Zwracane wartości

Zwraca TRUE w przypadku powodzenia, FALSE w przypadku błędu.

Błędy/Wyjątki

Emits a E_WARNING level error if character is invalid.

Notatki

Ostrzeżenie

Ta funkcja jest w stadium EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na własne ryzyko.

Patrz także


Unicode Funkcje
PHP Manual