This function is an alias of mysqli_character_set_name(). For a detailled descripton see description of mysqli_character_set_name().
mysqli_client_encoding(), and mysqli_real_escape_string().