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

Re: emacs-w3m, w3m-m17n and mule



From: Sergei Pokrovsky <pok@nbsp.nsk.su> said
Subject: [emacs-w3m:03681] emacs-w3m, w3m-m17n and mule
Message-ID: <uuheiw42yo.fsf@nbsp.nsk.su>
Date: 19 Jul 2002 14:00:15 +0700

pok> I've installed w3m-m17n, and it correctly shows various encodings on a
pok> utf-8 xterm.  Alas, I could not persuade w3m_el-1.3 to render the
pok> pages in the correct encoding.  Do I miss something?  Has this problem
pok> been addressed?

Does your Emacs-20.7 have a UTF-8 coding-system?

If does not have a UTF-8 coding-system, please install and
require the Mule-UCS Emacs lisp package.
(See detail: http://emacs-w3m.namazu.org/ml/msg03630.html)

And put your ~/.emacs as below,

(setq w3m-type 'w3m-m17n)
(setq w3m-command-arguments nil)
(setq w3m-command "/pass/of/w3m-m17n")
(setq w3m-coding-system 'iso-8859-1)		;; or 'utf-8
(setq w3m-coding-system-priority-list nil)
(setq w3m-default-coding-system 'iso-8859-1)	;; or 'utf-8
(setq w3m-input-coding-system 'binary)
(setq w3m-output-coding-system 'utf-8)
(setq w3m-dump-head-source-command-arguments
      '("-o" "accept_language=ja;q=1.0,en;q=0.5"  ;; as you like
	"-dump_extra"))
(setq w3m-halfdump-command-arguments
      (list "-halfdump"
	    "-o" "ext_halfdump=1"
	    "-o" "pre_conv=1"			;; necessary?
	    '(if charset "-I") 'charset "-O" "utf-8"))

I try this seting with the newest w3m-m17n that get from
http://www2u.biglobe.ne.jp/~hsaka/w3m/patch/w3m-0.3.1-m17n-20020717.tar.gz

Regards,

-- 
Hideyuki SHIRAI (mailto:shirai@rdmg.mgcs.mei.co.jp)