Re: mb output and setting headers

From: Date: Wed, 03 Jul 2002 09:59:16 +0000
Subject: Re: mb output and setting headers
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-262@lists.php.net to get a copy of this message
I don't remember the resolution, but the same question is asked in php-users@php.gr.jp list. It's in Japanese, though. You should be able to find work around or something. (I think I other other person fixed the problem for 4.2.0, but I don't remeber well. You should be able to find the resolutoin in archive.)
Thanks very much. Actually I found that thread and the work-around this morning in the php.gr.jp list archives. The solution, BTW, is to use <? ini_set('default_mimetype', 'text/x-hdml')?> instead of <?header("Content-type: text/x-hdml");?> The patch mentioned on the ML seems to be applied to the source of the latest version of PHP (4.2.1), but the strange behavior is still there. It's mentioned in the documentation, but it seems to me like a big mistake to make the multibyte conversion incompatible with such an important function as header(). Anyway, I hope it gets fixed in the next version. This broke a lot of scripts for me when I upgraded - and probably for other people who need to output Japanese to more than one type of client. Regards, Dave
-- Yasuo Ohgaki David Emery wrote:
Hi, It seems to be a new thing with PHP 4.1.0 or later that conversion of the output buffer does not happen if the Content-type is set using the header() function. So how can I set the content type AND have the output converted? I need to set the Content-type: text/x-hdml and the output encoding to SJIS for EZ-web phones. This was no problem prior to version 4.1. Regards, Dave


« previous php.i18n (#262) next »