By default this is set to 'pass' witch means that php will not touch the encoding and output it as it is in the source file.
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.| CARVIEW |
mb_http_output
(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)
mb_http_output — Lit/modifie l'encodage d'affichage
Description
Lit/modifie l'encodage d'affichage. L'affichage après l'appel de cette fonction
sera converti depuis l'encodage interne vers l'encodage fourni par le paramètre
encoding.
Liste de paramètres
encoding-
Si
encodingest fourni, mb_http_output() utilisera dorénavant l'encodageencodingpour les affichages HTTP : les caractères qui seront envoyés aux clients web seront convertis dans le jeu de caractèresencoding.Si
encodingest omis, mb_http_output() retourne l'encodage d'affichage courant.
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.
Erreurs / Exceptions
Lève une exception ValueError si
encoding contient des octets nuls.
Historique
| Version | Description |
|---|---|
| 8.4.0 |
mb_http_output() lève désormais une
exception ValueError si encoding
contient des octets nuls.
|
| 8.0.0 |
encoding est désormais nullable.
|
Voir aussi
- mb_internal_encoding() - Lit/modifie l'encodage interne
- mb_http_input() - Détecte le type d'encodage d'un caractère HTTP
- mb_detect_order() - Lit/modifie l'ordre de détection des encodages