<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS 7 - FastCGI Module</title><link>http://forums.iis.net/1104.aspx</link><description>Questions related to the FastCGI module for IIS7</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Problem with PHP and file encoding</title><link>http://forums.iis.net/thread/1909127.aspx</link><pubDate>Fri, 03 Jul 2009 04:23:03 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909127</guid><dc:creator>jonlau</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909127.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1909127</wfw:commentRss><description>&lt;p&gt;i&amp;#39;ve similar problem where the PHP UTF-8 encoding works on window server 2000.&lt;/p&gt;
&lt;p&gt;Just moved to IIS7+fastcgi on windows server 2008 and the php is showing ??? ( non-english chars)...it needs to support chinese, english &amp;amp; japanese languages.&lt;/p&gt;
&lt;p&gt;Any solutions or setting in php.ini?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jon Lau&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Problem with PHP and file encoding</title><link>http://forums.iis.net/thread/1901318.aspx</link><pubDate>Tue, 21 Apr 2009 10:14:14 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901318</guid><dc:creator>Sevein</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901318.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1901318</wfw:commentRss><description>&lt;p&gt;Hi! When I call session_start() PHP function, PHP engine (through FastCGI) gives me the next warning:&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Warning&lt;/b&gt;:  session_start() [&lt;a href="http://fundacionmedinaceli/alfonsox/function.session-start"&gt;function.session-start&lt;/a&gt;]:
Cannot send session cache limiter - headers already sent (output
started at D:\foo\bar.utf8.php:1) in &lt;b&gt;C:\foo\bar.utf8.php&lt;/b&gt; on line&lt;b&gt; 1&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The only way I found to avoid this problem is setting my scripts file encoding to ANSI. Actually, I discover that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;If my script file encoding is ANSI, everything is okay.&lt;/li&gt;

&lt;li&gt;If my script file encoding is UTF-8, I receive the warning described before happens.&lt;/li&gt;

&lt;li&gt;If my script file encoding is Unicode (UTF-16, UCS-2) the web server doesn&amp;#39;t give a response, so my browser gets waiting for it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Talking about my case, UTF-8, the problem seems to be that some output is beeing sent before the header sent by my script. Actually, I can reproduce the same problem with this simple script file:&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;lt;?php header(&amp;quot;Location: http://forums.iss.net&amp;quot;); ?&amp;gt;&lt;/p&gt;

&lt;p&gt;So, as I expected, the warning received is:&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Warning&lt;/b&gt;: Cannot modify header information - headers already sent
by (output started at C:\foo\bar.utf8.php:1) in &lt;b&gt;C:\foo\bar.utf8.php&lt;/b&gt; on line &lt;b&gt;1&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Of course, this problem is solved when I enable ouput_buffering in PHP, allowing my scripts to modify headers whenever. Do you think this is a bug or something wrong in my IIS7/FastCGI/php.ini configuration?&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Jesús García Crespo&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>