Gnus development mailing list
 help / color / mirror / Atom feed
* Re: gnus doesn't encode non-ascii attachment filenames
       [not found] <8764njdbxi.fsf@emacsfans.org>
@ 2006-02-14 22:49 ` Katsumi Yamaoka
  0 siblings, 0 replies; only message in thread
From: Katsumi Yamaoka @ 2006-02-14 22:49 UTC (permalink / raw)
  Cc: bugs, ding

>>>>> In <8764njdbxi.fsf@emacsfans.org> Zhang Wei wrote:

> While composing mail, if I attach a file with non-ascii(chinese
> actually) filename, it's failed to correctly encode the filename.

> -- 
> Zhang Wei or Brep
> <brep@smth.org>

How is it incorrect?  Gnus does the RFC2231 encoding, that is
very correct.  However, in fact, many mail softwares don't
understand it.  They likely use the RFC2047-like encoding that
can understand only them.  That has not been standardized.  Gnus
can handle such an encoding, though.

Here's an extract from the Emacs MIME manual.  Does it help?

`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)



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-14 22:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <8764njdbxi.fsf@emacsfans.org>
2006-02-14 22:49 ` gnus doesn't encode non-ascii attachment filenames Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).