Re: chinese word becomes __, when save attachment file
hi,
thank you for your reply, the following is some relevant
information,
////////////////////////////////////////////////////////
1) email header of mime part
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="IS0zKkzwUGydFO0o"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.5.11+cvs20060403
Status: RO
--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=gbk
Content-Disposition: attachment; filename*=gbk''%C4%E3%BA%C3
Content-Transfer-Encoding: 8bit
中文存储问题。
--IS0zKkzwUGydFO0o--
-----------------------*************---------------------
The following is another mime header
both have problem
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_1147689017_22581.attach"
Status: RO
Content-Type: application/octet-stream;
name="=?gb2312?B?udjT2r+q1bkyMDA1oasyMDA20afE6rbIx+W7qrTz0aehsNPF0OMuZG9j?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="=?gb2312?B?udjT2r+q1bkyMDA1oasyMDA20afE6rbIx+W7qrTz0aehsNPF0OMuZG9j?="
//////////////////////////////////////////////////////////
2) locale
LANG=zh_CN.GBK
LANGUAGE=en_CN:en_US:en_GB:en:zh_CN
LC_CTYPE=zh_CN.GBK
LC_NUMERIC=zh_CN.GBK
LC_TIME=en_US
LC_COLLATE=zh_CN.GBK
LC_MONETARY=zh_CN.GBK
LC_MESSAGES="zh_CN.GBK"
LC_PAPER=zh_CN.GBK
LC_NAME=zh_CN.GBK
LC_ADDRESS=zh_CN.GBK
LC_TELEPHONE=zh_CN.GBK
LC_MEASUREMENT=zh_CN.GBK
LC_IDENTIFICATION=zh_CN.GBK
LC_ALL=
//////////////////////////////////////////////////////////
3) set rfc2047_parameters=yes
at the begining, I did not set this parameter, there was
the problem. after I set this parameter, there is still
the problem.
I also tried 'set create_rfc2047_parameters=yes', it still
did not work.
Thanks for you help.
yf
* Alain Bench (veronatif@xxxxxxx) wrote:
> Hello,
>
> On Friday, May 12, 2006 at 17:12:37 +0200, Ye Fei wrote:
>
> > When I receive an email with attachment file with chinese name, it can
> > be displayed correctly in mutt. However when I save it to disk, all
> > the chinese words become _________
>
> This sounds maybe related to some bug with similar effect, where
> attachment names are munged by <resend-message> (ESC e). Now here, on
> saving, Chinese names are OK. Could you please show us the headers of
> the MIME part, your locale, and the setting of $rfc2047_parameters?
> While at it, also give us all your charset related settings.
>
>
> Bye! Alain.
> --
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?