|
|
Subscribe / Log in / New account

Better explanation?

Better explanation?

Posted Feb 11, 2006 5:08 UTC (Sat) by pimlott (guest, #1535)
In reply to: Better explanation? by cgorac
Parent article: Setting up international character support (Linux.com)

For a unicode-based environment, you should have only to set your LANG environment variable to en_US.UTF-8 (assuming the en_US part is right for you). (Be sure it's set when X starts, not just when your shell starts, say in .xsession if you use a display manager.) xterm and I hope other modern terminal programs will recognize the locale, and so encode/decode the terminal streams as utf-8 and use a unicode font. While some instructions advise using a special terminal program or passing it special flags, I never had to do any of that (thank goodness). Then cat some utf-8 text and see the pretty symbols. :-) Any other well-written program should likewise honor LANG (although many allow further configuration as well, in case you need to deal with other encodings sometimes).

I can't tell you anything about the rest of your question.


to post comments

Better explanation?

Posted Feb 14, 2006 3:05 UTC (Tue) by roelofs (guest, #2599) [Link]

xterm and I hope other modern terminal programs will recognize the locale, and so encode/decode the terminal streams as utf-8 and use a unicode font.

xterm may also require the -u8 option. Both LC_CTYPE=en_US.UTF-8 and -u8 are already part of the uxterm script, at least on Slackware. The default font seems to be missing a fair number of CJK characters, however (not to mention virtually all Indic ones, Thai, etc.).

Greg


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds