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_encoding
(Bir sürüm bilgisi bulunamadı; sadece SVN'de olabilir.)
stream_encoding — Akımı kodlayacak karakter kümesini belirler
Açıklama
bool stream_encoding
( resource
$akım
[, string $karküm
] )Uyarı
Bu işlev hala belgelendirilmemiştir; sadece değiştirge listesi mevcuttur.
hajo at clansphere dot de ¶
3 years ago
