CakeFest 2024: The Official CakePHP Conference

mb_http_output

(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)

mb_http_outputEstablece/obtiene la codificación de caracteres de salida HTTP

Descripción

mb_http_output(string $encoding = mb_http_output()): mixed

Establece/obtiene la codificación de caracteres de salida HTTP. La salida después de llamar a esta función será convertida de la codificación interna a encoding.

Parámetros

encoding

Si se establece encoding, mb_http_output() establece la codificación de caracteres de salida HTTP a encoding.

Si se omite encoding, mb_http_output() devolverá la codificación de caracteres de salida HTTP en uso.

Valores devueltos

Si encoding se omite, mb_http_output() devuelve la codificación de caracteres de salida HTTP en uso. De otro modo, Devuelve true en caso de éxito o false en caso de error.

Ver también

add a note

User Contributed Notes 1 note

up
3
anders jenbo pc dk
16 years ago
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.
To Top