So what you're saying is, the chinese characters display correctly with the chinese font, but incorrectly with a non-chinese font. Sounds like everything is working to me. ;)<br><br>Unless you are saying that the chinese characters work with the other font in programs aside from xmobar?<br>
<br><div class="gmail_quote">On Sun, May 17, 2009 at 10:09 PM, Chengqi(Lars) Song <span dir="ltr"><<a href="mailto:songcq@gmail.com" target="_blank">songcq@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi,<br>
<br>
I'm using xmobar with xmonad. I found that it's hard to display Chinese characters in xmobar. So I made the following tests:<br>
<br>
Set up:<br>
1. my system locale is en_US.utf-8<br>
2. my xmobar is compiled with xft and utf8 support<br>
3. in my xmobarrc, the font is set to be "xft:monospace-6"<br>
3. in terminal, I run "cat | xmobar ~/.xmobarrc"<br>
<br>
The results:<br>
1. English can be displayed well. But all Chinese characters are displayed in squares.<br>
2. If I change the font in xmobarrc to be a Chinese font "xft:SimSun-6", then the display is correct.<br>
<br>
So I guess it might be a bug of xft binding in ghc's library. Do you have similiar experience in xmobar or someother programs?<br>
<br>
Regards<br>
Lars<br>
_______________________________________________<br>
xmonad mailing list<br>
<a href="mailto:xmonad@haskell.org" target="_blank">xmonad@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/xmonad" target="_blank">http://www.haskell.org/mailman/listinfo/xmonad</a><br>
</blockquote></div><br>