From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9612 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.user Subject: Re: Chinese filename in the attachment Date: Mon, 03 Sep 2007 21:02:26 +0900 Organization: Emacsen advocacy group Message-ID: References: <1188352119.603949.256770@m37g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188823333 21838 80.91.229.12 (3 Sep 2007 12:42:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Sep 2007 12:42:13 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Sep 03 14:42:12 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ISBFm-0005bL-5T for gegu-info-gnus-english@m.gmane.org; Mon, 03 Sep 2007 14:42:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISBFl-0001es-1R for gegu-info-gnus-english@m.gmane.org; Mon, 03 Sep 2007 08:42:05 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.freenet.de!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!news.banetele.no!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 27 Original-NNTP-Posting-Host: orlando.hostforweb.net Original-X-Trace: quimby.gnus.org 1188820953 2261 216.246.45.90 (3 Sep 2007 12:02:33 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Mon, 3 Sep 2007 12:02:33 +0000 (UTC) X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:RUwMroMYQsfs+BtUoqdwdNvdp9A= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79813 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9612 Archived-At: >>>>> haomiao wrote: > But when my mail has attachment whose filename contains Chinese > characters, other persons who are using outlook or foxmail can not see > the attachment. (gnus can) I don't know what version of Gnus you use but the recent ones have this feature: (info "(emacs-mime)rfc2047") ,---- |`rfc2047-encode-parameter' | Encode a parameter in the RFC2047-like style. This is a | replacement for the `rfc2231-encode-string' function. *Note | rfc2231::. | | When attaching files as MIME parts, we should use the RFC2231 | encoding to specify the file names containing non-ASCII | characters. However, many mail softwares don't support it in | practice and recipients won't be able to extract files with | correct names. Instead, the RFC2047-like encoding is acceptable | generally. This function provides the very RFC2047-like encoding, | resigning to such a regrettable trend. To use it, put the | following line in your `~/.gnus.el' file: | | (defalias 'mail-header-encode-parameter 'rfc2047-encode-parameter) `----