how to create utf-8 unicodeded txt file with php?
Posted: Tue Jan 16, 2007 1:12 am
how to create utf-8 unicodeded txt file with php?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?
header("Content-type: text/plain;charset=utf-8 \r\n");
header("Content-Disposition: attachment; filename=text.txt");
echo "text file content";
?>You don't need that in the header function.\r\n