This function encodes a string to UTF-8 encoding. It returns the encoded string, or false if the encoding fails. UTF-8 is commonly used on the web as it can represent all possible characters and is compatible with ASCII.Read less