PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mb_internal_encoding> <mb_http_input
Last updated: Fri, 10 Oct 2008

view this page in

mb_http_output

(PHP 4 >= 4.0.6, PHP 5)

mb_http_outputHTTP 出力文字エンコーディングを設定あるいは取得する

説明

mixed mb_http_output ([ string $encoding ] )

HTTP 出力文字エンコーディングを設定あるいは取得します。 この関数を実行した後、 出力は encoding に変換されます。

パラメータ

encoding

encoding が設定された場合、 mb_http_output() は HTTP 出力文字エンコーディングを encoding に設定します。

encoding が省略された場合、 mb_http_output() は現在の HTTP 出力文字エンコーディングを返します。

返り値

encoding が省略された場合、 mb_http_output() は現在の HTTP 出力文字エンコーディングを返します。それ以外の場合、 成功した場合に TRUE を、失敗した場合に FALSE を返します。



add a note add a note User Contributed Notes
mb_http_output
anders jenbo pc dk
03-Oct-2007 01:23
By default this is set to 'pass' witch means that php will not touch the encoding and output it as it is in the source file.

Normaly this function isn't needed as long as you save the .php file in the same encoding as you want it to output as well as retrive all input in the same encoding, but it don't seam to herd as long as it able to figure out what encoding the output is in ín the first place.

mb_internal_encoding> <mb_http_input
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites