Search Results
Return Values ¶ If encoding is omitted, mb_http_output () returns the current HTTP output character encoding. Otherwise, Returns true on success or false on failure.
Valeurs de retour Si le paramètre encoding est omis, mb_http_output () retourne l'encodage courant HTTP. Sinon, Cette fonction retourne true en cas de succès ou false si une erreur survient.
Apr 28, 2025 · The mb_http_output () function is an inbuilt function in PHP that is used to set and retrieve the character encoding. This function allows you to specify a character encoding for HTTP response.
Output after this function is converted to encoding. mb_http_output () returns TRUE for success and FALSE for failure. If encoding is omitted, mb_http_output () returns current HTTP output character encoding. See also mb_internal_encoding (), mb_http_input (), mb_detect_order ().
Execute mb_http_output Online. Info and examples on mb_http_output PHP Function from Multibyte String - Human Language and Character Encoding Support
Normaly this function isn't needed as long as you save the .php file in the same encoding as you want it to output as well as retrive all input in the same encoding, but it don't seam to herd as long as it able to figure out what encoding the output is in ín the first place.
Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8 Set/Get HTTP output character encoding
