Tuesday, January 25, 2011

Display chinese with Elinks

Elinks is a perfect tool to omit those annoying pis/image/flash.
Best for office use. :-)

But it cannot support Chinese automatically.
Luckily there is a workaround:

Change ~/.elinks/elinks.conf
set config.saving_style_w = 1
set terminal.xterm.charset = "windows-1252"
set terminal.xterm.colors = 0
set terminal.xterm.utf_8_io = 0
set ui.language = "System"
set document.codepage.assume = "windows-1252"


Restart elinks, Done!

1 comment:

  1. This method use to work on my Ubuntu 10. But after I reinstall Ubuntu11 and RHEL 6.2, somehow it doesn't work anymore.
    For those who really want command line browser to read chinese contents, I strongly suggest using "w3m", it support chinese automatically.
    yum install -y w3m
    lynx is another option, but you have to carefully set the charset, too tricky, not worth the time to play it out.

    ReplyDelete