[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: Help: using chinese-gbk

>>>>> In [emacs-w3m : No.09367] Jielei Fan wrote:

> I think I should set `w3m-charset-coding-system-alist' to support
> chinese, and then set variable 'w3m-terminal-coding-system'.  but I
> dont know how to do it?  I hope to search chinese in search engine.

If a web page specifies the charset gbk, chinese-gbk, GBK, or
CHINESE-GBK, you have nothing to do because emacs-w3m uses the
coding system gbk or chinese-gbk if it is available.  In the
case where a page specifies the X-GBK charset for example, you
can tell emacs-w3m that it is the same as GBK as follows.

(add-to-list 'w3m-charset-coding-system-alist '(x-gbk . gbk))

;; Add this line to the ~/.emacs-w3m.el file.