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