求助:deepin-meacs w3m 搜索 输入 "中文" 出现"中" would not be accepted
Tofloor
poster avatar
gnuhub
deepin
2013-11-24 18:58
Author
deepin-meacs w3m 搜索 输入 "中文" 出现"中" would not be accepted
Reply Favorite View the author
All Replies
186******98
deepin
2013-11-25 00:26
#1
deepin-meacs w3m 搜索 输入 "中文" 出现"中" would not be accepted
w3m 不是搜索, 是emacs对w3m浏览器的扩展, 你应该输入网址, 比如 www.google.com
Reply View the author
gnuhub
deepin
2013-11-25 02:53
#2
我是执行
  1. M-x w3m-search RET 中文测试
Copy the Code
执行搜索的
通过设置 debug-on-entry 跟进w3m-search发现原来中间对字符进行了编码,但是编码字符集不正确

通过在
  1. init-w3m.el
Copy the Code
加入
  1. (setq w3m-coding-system 'utf-8
  2.         w3m-default-coding-system 'utf-8
  3.         w3m-file-coding-system 'utf-8
  4.         w3m-file-name-coding-system 'utf-8
  5.         w3m-input-coding-system 'utf-8
  6.         w3m-output-coding-system 'utf-8
  7.         w3m-terminal-coding-system 'utf-8)
Copy the Code
解决.
Reply View the author
186******98
deepin
2013-11-25 08:12
#3
我是执行
  1. M-x w3m-search RET 中文测试
Copy the Code
执行搜索的
通过设置 debug-on-entry 跟进w3m-search发现原来中间对字符进行了编码,但是编码字符集不正确

通过在
  1. init-w3m.el
Copy the Code
加入
  1. (setq w3m-coding-system 'utf-8
  2.         w3m-default-coding-system 'utf-8
  3.         w3m-file-coding-system 'utf-8
  4.         w3m-file-name-coding-system 'utf-8
  5.         w3m-input-coding-system 'utf-8
  6.         w3m-output-coding-system 'utf-8
  7.         w3m-terminal-coding-system 'utf-8)
Copy the Code
解决.
w3m 这个插件是几个日本人写的, 编码是不用设置的, 当年我设置 utf-8 的时候会导致渲染各种挂。

我这边测试 w3m-search 不用设置是可以正常工作的.
Reply View the author