Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Encoding 处理从mutt到abook的字符串编码_Encoding_Utf 8_Mutt - Fatal编程技术网

Encoding 处理从mutt到abook的字符串编码

Encoding 处理从mutt到abook的字符串编码,encoding,utf-8,mutt,Encoding,Utf 8,Mutt,我注意到,一个流行的mutt地址簿不能正确处理与mutt不同的编码字符串。具体而言: # .muttrc macro index,pager A "<pipe-message>abook --add-email-quiet<return>" "add the sender address to abook" 似乎指定了编码,但未正确读取。mutt确认,我的语言环境/系统始终设置为utf-8。abook在其菜单和帮助中显示非英语/西方字符。就在这两者之间发生了一些事情 有

我注意到,一个流行的mutt地址簿不能正确处理与mutt不同的编码字符串。具体而言:

# .muttrc
macro index,pager A "<pipe-message>abook --add-email-quiet<return>" "add the sender address to abook"
似乎指定了编码,但未正确读取。mutt确认,我的语言环境/系统始终设置为utf-8。abook在其菜单和帮助中显示非英语/西方字符。就在这两者之间发生了一些事情

有没有一种通过宏处理编码的快速方法?是否可以调用python/ruby进行转换或其他操作?

如果abook无法处理已编码的头文件,那么您可能应该在执行管道之前设置
$pipe\u decode
变量并在执行以下操作之后恢复值,从而将已解码的头文件发送给它:

macro index,pager A "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email-quiet<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
宏索引,寻呼机A“设置my\u pipe\u decode=\$pipe\u decode pipe\u decode OK--添加电子邮件静止设置pipe\u decode=\$my\u pipe\u decode;取消设置my\u pipe\u decode”“将发件人地址添加到ABOK”
macro index,pager A "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email-quiet<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"