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 — Lee/modifica la codificación de visualización
Descripción
Lee/modifica la codificación de visualización. La visualización después de la llamada a esta función
será convertida desde la codificación interna hacia la codificación proporcionada por el argumento
encoding.
Parámetros
encoding-
Si
encodinges proporcionado, mb_http_output() utilizará la codificaciónencodingpara las visualizaciones HTTP: los caracteres que serán enviados a los clientes web serán convertidos al juego de caracteresencoding.Si
encodinges omitido, mb_http_output() devuelve la codificación de visualización actual.
Valores devueltos
Si el argumento encoding es omitido,
mb_http_output() devuelve la codificación HTTP actual. De lo contrario, Esta función retorna true en caso de éxito o false si ocurre un error.
Errores/Excepciones
Levanta una excepción ValueError si
encoding contiene octetos nulos.
Historial de cambios
| Versión | Descripción |
|---|---|
| 8.4.0 |
mb_http_output() levanta ahora una
excepción ValueError si encoding
contiene octetos nulos.
|
| 8.0.0 |
encoding is nullable now.
|
Ver también
- mb_internal_encoding() - Lee/modifica la codificación interna
- mb_http_input() - Detecta el tipo de codificación de caracteres HTTP
- mb_detect_order() - Lee/modifica el orden de detección de codificaciones