<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
    <channel>
        <title>恐龙志 - evolve the web!</title>
        <link>http://www.w3cool.com/</link>
        <description>The Place where deploy our Ideas and Paranoeas!</description>
        <language>zh-cn</language>
        <copyright>Copyright 2010</copyright>
        <lastBuildDate>Thu, 24 Sep 2009 16:30:19 +0800</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>OpenX统计报表的乱码问题</title>
            <description><![CDATA[<p>我使用的版本是<strong>openx-2.8.1</strong>。在导出excel表格时遇到乱码，原来其实很简单,就是php字符串编码问题，iconv一下就行：</p><p>1、文件名：lib/pear/Spreadsheet/Excel/Writer.php文件的function send($filename)函数，第67行加上$filename = iconv(&quot;utf-8&quot;, &quot;gb2312&quot;, $filename);文件名由<font color="#ff0000">xxxxxxxx.</font><font color="#000000">变成</font><font color="#ff0000">广告分析报告&nbsp;xxx&nbsp;From Beginning 到 27-03-2009.xls。</font></p><p><font color="#000000">2、excel文件内容：lib/pear/Spreadsheet/Excel/Writer/Worksheet.php文件的Writerfunction write($row, $col, $token, $format = 0)函数，第1166行替换为</font><font color="#ff0000">return $this-&gt;writeString($row, $col, iconv(&quot;utf-8&quot;, &quot;gb2312&quot;, $token), $format);</font></p><p><font color="#000000">3、工作表名称：lib/pear/Spreadsheet/Excel/Writer/Workbook.php文件的function &amp;addWorksheet($name = '')函数，第318行加上</font><font color="#ff0000">$name = iconv(&quot;utf-8&quot;, &quot;gb2312&quot;, $name);</font></p>]]></description>
            <link>http://www.w3cool.com/2009/09/24/openx.html</link>
            <guid>http://www.w3cool.com/2009/09/24/openx.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">CGI/PHP/Perl</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">编程|Coding</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">广告 php</category>
            
            <pubDate>Thu, 24 Sep 2009 16:30:19 +0800</pubDate>
        </item>
        
    </channel>
</rss>

