Programming: August 2008 Archives

Mail Subject Encoding

| | Comments (0)

根據 RFC 2047 的規範, Mail Header 中的 Non-ASCII Text 要用這個格式
「=?charset encoding?encoding code?header content?=」
encoding code 有可能是 b (base64編碼) 或 q (QP編碼)
例如:「測試郵件」編碼後就變成「=?UTF-8?B?5ris6Kmm6YO15Lu2?=」
用 PHP 的話可以用 mb_send_mail(), 會自動幫你編碼.

ref. 石頭閒語:PHP mail() and charset encoding question

August 2008

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

About this Archive

This page is a archive of entries in the Programming category from August 2008.

Programming: July 2008 is the previous archive.

Find recent content on the main index or look in the archives to find all content.