Re: Http_output



Excellent it's all clear now

I admit that my original message wasn't that clear - 'if your PHP
source is stored' should have read something like 'if the output from
your PHP function is UTF-8'. So, back to my original question, if all
of PHP output was UTF-8, could I use mb_http_output and output
buffering to deliver this to the browser as UCS-2 by the following:

mb_internal_encoding("UTF-8");
mb_http_output("UCS-2");
ob_start("mb_output_handler");

=== yes, you should be able to do that. what does you callback do?


do you mean mb_output_handler? "mb_output_handler() converts characters
in output buffer from internal character encoding to HTTP output
character encoding."

Taras

.