note 57452 added to function.ob-iconv-handler
| From: | st33mann at gmx dot n3t | Date: | Tue, 04 Oct 2005 18:43:56 +0000 |
| Subject: | note 57452 added to function.ob-iconv-handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96383@lists.php.net to get a copy of this message | ||
Just a quick note that may be helpful for some:
It seems to me that this function also modifies the HTTP Content-Type header that's sent to the
client (at least in combination with the iconv_set_encoding() function).
If you specify an encoding ending with "//TRANSLIT" or "//IGNORE" (valid in
iconv), it will still send the encoding name in the HTTP header. This makes it an invalid character
set unfortunately.
For example:
<?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 header of "ISO-8859-1//TRANSLIT".
----
Manual Page -- http://www.php.net/manual/en/function.ob-iconv-handler.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57452
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57452&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57452&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57452&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57452&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57452&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57452&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57452&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57452&report=yes
Search -- http://master.php.net/manage/user-notes.php