note 105552 deleted from function.ob-iconv-handler by danbrown
| From: | danbrown@php.net | Date: | Fri, 26 Aug 2011 16:04:21 +0000 |
| Subject: | note 105552 deleted from function.ob-iconv-handler by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182760@lists.php.net to get a copy of this message | ||
Note Submitter: daniel dot rhodes at warpasylum dot co dot uk
----
The comment below is years old and indeed doesn't seem to be the case anymore (which is good!).
The Content-Type HTTP header *does* get changed, but does not (for me at least!) have the trailing
//TRANSLIT or //IGNORE or what-have-you:
<?php
iconv_set_encoding("internal_encoding","UTF-8");
iconv_set_encoding("output_encoding","ISO-8859-1//TRANSLIT");
ob_start("ob_iconv_handler");
?>
Will send a Content-Type HTTP header of "ISO-8859-1" which is perfectly valid.