<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://www.majordojo.com/projects/FeedManager/atom.xsl" type="text/xsl" media="screen"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2004/09/eaecutf8cccvbb3.html" />
  <link rel="self" type="application/atom+xml" href="http://www.thinkjam.org/zoptuno/archives/2004/09/eaecutf8cccvbb3.html" />
  <id>tag:www.thinkjam.org,2009:/zoptuno//2/tag:www.thinkjam.org,2004:/zoptuno//2.29-</id>
  <updated>2009-09-21T03:19:56Z</updated>
  <title>Comments for 让使用UTF-8编码的VBB3发送邮件中文标题不再乱码</title>
  <subtitle>My think. My dream.</subtitle>
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.31-zh-cn</generator>
  <entry>
    <id>tag:www.thinkjam.org,2004:/zoptuno//2.29</id>
    <link rel="alternate" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2004/09/eaecutf8cccvbb3.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.thinkjam.org/loveblog/batom.cgi/weblog/blog_id=2/entry_id=29" title="让使用UTF-8编码的VBB3发送邮件中文标题不再乱码" />
    <published>2004-09-07T13:34:29Z</published>
    <updated>2008-11-07T04:16:18Z</updated>
    <title>让使用UTF-8编码的VBB3发送邮件中文标题不再乱码</title>
    <summary>自己用VBB 3.0.3做了一个论坛，使用UTF-8编码，对中文支持很好，只是在...</summary>
    <author>
      <name>平生一笑</name>
      <uri>http://www.thinkjam.org/zoptuno</uri>
    </author>
    
    <category term="代码" />
    
    <content type="html" xml:lang="en" xml:base="http://www.thinkjam.org/zoptuno/">
      <![CDATA[<p>自己用VBB 3.0.3做了一个论坛，使用UTF-8编码，对中文支持很好，只是在使用VBB的邮件功能时，邮件内容倒是很正常，但标题和发件人若是中文，会出现乱码，看起来很不舒服，后来通过编辑includes目录的functions.php文件，解决了这个问题，现与大家分享：</p>]]>
      <![CDATA[<p>查找：<br />
<blockquote>// ###################### Start vbmail ####################### </blockquote><br />
在vbmail函数中找到：<br />
<blockquote>$message = unhtmlspecialchars($message, $unicode_decode); <br />
$subject = unhtmlspecialchars($subject, $unicode_decode); </blockquote><br />
在后面加上：<br />
<blockquote>$subject = "=?UTF-8?B?".base64_encode($subject)."?="; </blockquote><br />
再找到：<br />
<blockquote>$mailfromname = unhtmlspecialchars($mailfromname, $unicode_decode);</blockquote><br />
在后面加上：<br />
<blockquote>$mailfromname = "=?UTF-8?B?".base64_encode($mailfromname)."?="; </blockquote><br />
这只是我的解决办法，各位肯定有更好的方法，拿出来让偶学习学习！</p>]]>
    </content>
  </entry>

  <entry>
    <id>tag:www.thinkjam.org,2004:/zoptuno//2.29-comment:275</id>
    <thr:in-reply-to ref="tag:www.thinkjam.org,2004:/zoptuno//2.29" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2004/09/eaecutf8cccvbb3.html"/>
    <link rel="alternate" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2004/09/eaecutf8cccvbb3.html#c275" />
    <title>Comment from hch on 2004-10-30</title>
    <author>
        <name>hch</name>
<!--        <uri>http://www.storynest.com</uri> -->
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.storynest.com">
	<![CDATA[<p>多謝！查了那麼多網站，你的方法有用！</p>

<p>hch</p>]]>
    </content>
    <published>2004-10-29T18:35:43Z</published>
    <updated>2004-10-29T18:35:43Z</updated>
  </entry>

  <entry>
    <id>tag:www.thinkjam.org,2004:/zoptuno//2.29-comment:276</id>
    <thr:in-reply-to ref="tag:www.thinkjam.org,2004:/zoptuno//2.29" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2004/09/eaecutf8cccvbb3.html"/>
    <link rel="alternate" type="text/html" href="http://www.thinkjam.org/zoptuno/archives/2004/09/eaecutf8cccvbb3.html#c276" />
    <title>Comment from dosxp on 2006-05-18</title>
    <author>
        <name>dosxp</name>
<!--         -->
    </author>
    <content type="html" xml:lang="en" xml:base="">
	<![CDATA[<p>hotmail不支持utf8可以解决吗？</p>]]>
    </content>
    <published>2006-05-18T15:46:55Z</published>
    <updated>2006-05-18T15:46:55Z</updated>
  </entry>

</feed>
