[xmonad] displaying chinese in xmobar

Chengqi(Lars) Song songcq at gmail.com
Mon Jan 5 23:46:42 EST 2009


hi,

im using the xmobar binary downloaded from xmobar's homepage, it should
be compiled with utf-8 support i think. but i still get chinese
characters messed up xmobar, for example, a chinese window title.

here are my settings:

in xmonad.hs:

    myPP h = defaultPP 
             { 
                 ppOutput = System.IO.UTF8.hPutStrLn h 
             } 

my locale:

    lars:~$ locale
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=

do you know whats wrong? or who else can display non-ascii characters in
xmobar? thanks

lars


More information about the xmonad mailing list