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

search for in the

stream_filter_append> <stream_copy_to_stream
Last updated: Fri, 13 Nov 2009

view this page in

stream_encoding

(PHP 6)

stream_encodingストリームのエンコード用の文字セットを設定する

説明

bool stream_encoding ( resource $stream [, string $encoding ] )
警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。



add a note add a note User Contributed Notes
stream_encoding
hajo at clansphere dot de
20-Jun-2009 07:46
with php 5.2+ you can (should!) use the following line next to e.g. fopen() and specify the encoding of the content:

<?php
$charset
= 'UTF-8';

stream_encoding($handle, $charset);
?>

in addition php 6 seems to need this since it triggers a notice level error if special chars must be converted and the above command is not specified (binary data excluded - just talkin bout clear text in this comment)

stream_filter_append> <stream_copy_to_stream
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites