我不是这样好事,但我甚至 over倒了这里的基本内容。
我试图建立一个被承认为UTF-8的档案。
header("Content-Type: text/plain; charset=utf-8");
header("Content-disposition: attachment; filename=test.txt");
echo "test";
exit();
审判
header("Content-Type: text/plain; charset=utf-8");
header("Content-disposition: attachment; filename=test.txt");
echo utf8_encode("test");
exit();
然后,我打开了附注pad++的档案,说其目前的编码是ANSI而不是UTF-8,我不知道我如何编制这一档案。
I will eventually be outputting an XML file of products for the Affiliate Window program. Also if it helps My webserver is Centos, Apache2, PHP 5.2.8.
事先得到任何帮助!