>I don't remember the resolution, but the same question is asked in
>[EMAIL PROTECTED] 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


-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to