PHP Unicode Functions
EditRocket provides the following information on Unicode functions in the PHP source code builder.
unicode unicode_decode ( string $input , string $encoding [, int $errmode ] ) - Convert a binary string encoded in encoding to a unicode string.
string unicode_encode ( unicode $input , string $encoding [, int $errmode ] ) - Takes a unicode string and converts it to a string in the specified encoding.
int unicode_get_error_mode ( int $direction ) - Return the current error mode for string conversions in direction.
unicode unicode_get_subst_char ( void ) -
bool unicode_semantics ( void ) - unicode_semantics() checks whether unicode semantics is enabled.
bool unicode_set_error_mode ( int $direction , int $mode ) - 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.
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 ?.