Re: Http_output
- From: "Taras_96" <taras.di@xxxxxxxxx>
- Date: 25 Jan 2007 02:06:25 -0800
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
.
- References:
- Http_output
- From: Taras_96
- Re: Http_output
- From: Steve
- Re: Http_output
- From: Taras_96
- Re: Http_output
- From: Steve
- Http_output
- Prev by Date: Re: Looking for recommendations on a programming language for a web application.
- Next by Date: outputting multi-dim array
- Previous by thread: Re: Http_output
- Next by thread: php force MP3 'save as' dialog
- Index(es):