设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 发行版讨论区 —— LinuxSir.cn
›
Gentoo Linux
›
mutt中文显示乱码?
1
2
/ 2 页
下一页
返回列表
查看:
2948
|
回复:
16
mutt中文显示乱码?
[复制链接]
wcw
wcw
当前离线
积分
371
IP卡
狗仔卡
发表于 2006-10-16 10:02:44
|
显示全部楼层
|
阅读模式
我在gnome的中文环境下进入mutt,终端的上下提示栏都是乱码:
q:离��~@ d:�~H��~Y� u:�~O~M�~H��~Y� s:�~B���~X m:信件 r:�~[~^��~F g:群��~D ?:帮�~J�
复制代码
在英文环境下进入mutt,终端上下的提示栏就正确了:
q:Quit d:Del u:Undel s:Save m:Mail r:Reply g:Group ?:Help
复制代码
这问题是怎么回事?貌似跟mutt无关??
然后,邮件上还有中文乱码,不管是中文还是英文环境?
我的
locale
LANG=zh_CN.utf8
LC_CTYPE=zh_CN.utf8
LC_NUMERIC=en_US
LC_TIME=en_US
LC_COLLATE=en_US
LC_MONETARY=en_US
LC_MESSAGES=en_US
LC_PAPER=en_US
LC_NAME=en_US
LC_ADDRESS=en_US
LC_TELEPHONE=en_US
LC_MEASUREMENT=en_US
LC_IDENTIFICATION=en_US
LC_ALL=
复制代码
.muttrc里面是
set charset = "utf-8"
set locale = "zh_CN"
不知这该怎么解决?
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
Zer4tul
Zer4tul
当前离线
积分
1070
IP卡
狗仔卡
发表于 2006-10-16 11:07:36
|
显示全部楼层
locale改成zh_CN.UTF-8
回复
支持
反对
使用道具
举报
显身卡
wcw
wcw
当前离线
积分
371
IP卡
狗仔卡
楼主
|
发表于 2006-10-16 13:05:03
|
显示全部楼层
都一样,没有任何改变
回复
支持
反对
使用道具
举报
显身卡
wcw
wcw
当前离线
积分
371
IP卡
狗仔卡
楼主
|
发表于 2006-10-16 15:46:39
|
显示全部楼层
贴张图看看吧!
像第一行的乱码,好像没人有过这种乱码问题!
还有最下面的乱码我也不知如何解决,论坛上有人说要emerge world,那就太可怕了!觉得跟上面的乱码问题可能不是同一个原因!
本帖子中包含更多资源
您需要
登录
才可以下载或查看,没有帐号?
注册
x
回复
支持
反对
使用道具
举报
显身卡
wcw
wcw
当前离线
积分
371
IP卡
狗仔卡
楼主
|
发表于 2006-10-17 21:00:03
|
显示全部楼层
不是吧!这里这么少人用mutt?
回复
支持
反对
使用道具
举报
显身卡
superekcah
superekcah
当前离线
积分
279
IP卡
狗仔卡
发表于 2006-10-17 22:58:25
|
显示全部楼层
我的locale是en_US.utf8,所以不存在你的问题,把locale所有的变量都设成同一个试试?
邮件中的在.muttrc中加入
set assumed_charset="utf-8:gb2312:gb18080:gbk"
看看
回复
支持
反对
使用道具
举报
显身卡
wcw
wcw
当前离线
积分
371
IP卡
狗仔卡
楼主
|
发表于 2006-10-18 11:54:33
|
显示全部楼层
还是一样,我把locale的所有选项变成en_US.utf8,上下提示栏就好了(第一贴一样),但是邮件里的中文还是乱码
回复
支持
反对
使用道具
举报
显身卡
superekcah
superekcah
当前离线
积分
279
IP卡
狗仔卡
发表于 2006-10-18 12:12:01
|
显示全部楼层
可能的话贴出mailcap和muttrc看看
回复
支持
反对
使用道具
举报
显身卡
wcw
wcw
当前离线
积分
371
IP卡
狗仔卡
楼主
|
发表于 2006-10-18 12:51:14
|
显示全部楼层
当然:
$ cat .mailcap
text/html ;\
w3m -T text/html -I %{charset} -dump %s ;\
nametemplate=%s.html ;\
copiousoutput
image/* ; feh %s
复制代码
auto_view application/zip
auto_view application/x-gzip
auto_view application/x-gunzip
auto_view application/pgp-signature
auto_view application/pgp
auto_view application/octet-stream
auto_view application/x-zip-compressed
auto_view application/x-arj-compressed
auto_view application/x-tar-gz
auto_view application/ms-tnef
auto_view application/x-perl
auto_view application/x-sh
auto_view application/x-tcl
auto_view application/x-delphi-source
auto_view application/emacs-lisp
auto_view application/msword
auto_view text/x-patch
auto_view text/html
auto_view text/x-vcard
auto_view text/x-script.elisp
auto_view image/tiff
auto_view text/x-lisp
set hostname="localhost"
set mbox_type=Maildir
set folder=~/.maildir
set spoolfile=~/.maildir/
set record=~/.maildir-sent-`date +%y-%m`/
set move=no
set sendmail = "/usr/bin/esmtp -v -X ~/.esmtplog"
set to_chars="+TCFL"
set charset="utf-8"
set send_charset="utf-8"
#mailboxes Mailbox sent-mail
set header=no
set include=yes
set indent_str="> "
auto_view text/html
set ascii_chars=yes
score "~N" +4
score "~f w2r007" +2
score "~s 通知" +2
score "~s Circulation" +3
score "~D" -5
score "~O" +1
score "~s believe" -10
set sort=threads
set sort_aux=date
set pager_stop
set fast_reply
set edit_headers = no
set pager_index_lines = 4
color signature brightred default
color status white blue
color tilde blue default
color tree brightmagenta default
color underline yellow default
color bold green default
color error red default
color indicator black white
color markers brightred default
color message white blue
color body cyan default "ftp://[^ ]*"
color body cyan default "www.[^ ]*"
color body brightgreen default "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:]]"
color body cyan default "<URL:[^ ]*>"
color body brightblue default "(^|[[:space:]])\\*[^[:space:]]+\\*([[:space:]]|$)"
color body brightblue default "(^|[[:space:]])_[^[:space:]]+_([[:space:]]|$)"
color body brightblue default "(^|[[:space:]])/[^[:space:]]+/([[:space:]]|$)"
color body yellow default "[;:]-[)/(|]"
color body yellow default "[8][-\^][)|]"
color body yellow default "[;:][)/(|]"
color body brightblue default "(http|https|rsync|ftp|news|telnet|finger|gopher)://[^ ]*"
color body brightblue default "<(http|https|rsync|ftp|news|telnet|finger|gopher)://[^ ]*>"
color header yellow default "^cc: "
color header red cyan "^X-Spam-Status:"
color header green default "^date: "
color header yellow default "^from "
color header cyan default "^from: "
color header yellow default "^newsgroups: "
color header yellow default "^reply-to: "
color header cyan default "^subject: "
color header green default "^to: "
color header yellow default "^x-mailer: "
color header yellow default "^message-id:"
color header yellow default "^Organization:"
color header yellow default "^Organisation:"
color header yellow default "^User-Agent:"
color header yellow default "^message-id: .*pine"
color quoted cyan default
color quoted1 yellow default
color quoted2 red default
color quoted3 green default
color quoted4 cyan default
color quoted5 yellow default
color quoted6 red default
color quoted7 green default
color index green default ~N
color index red default ~O
color index magenta default ~F
color index blue default ~T
color index yellow default ~D
# Maybe we shouldn't set index_format here, but this is a recommended
# one for maildir-style folders.
set index_format="%4C %Z %{%b %d} %-16.16L %s"
folder-hook . "ignore *; unignore from to subject date X-Mailer User-Agent"
folder-hook sent.* "ignore *; unignore from to subject date"
hdr_order X-Mailer User-Agent date from to subject
复制代码
回复
支持
反对
使用道具
举报
显身卡
superekcah
superekcah
当前离线
积分
279
IP卡
狗仔卡
发表于 2006-10-18 13:20:28
|
显示全部楼层
从你的截图看好像.mailcap没起作用,调用的还是lynx,图中邮件上的乱码都是提示吧,可能是lynx没找到之类的,应该跟第一行的乱码原因相同,locale换成en_US.utf8乱码还在吗?
另外邮件标题和内容是否乱码,尤其是中文
回复
支持
反对
使用道具
举报
显身卡
下一页 »
1
2
/ 2 页
下一页
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
开源软件专题讨论
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表