From owner-freebsd-questions@FreeBSD.ORG Tue Sep 9 21:47:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5462C1065671 for ; Tue, 9 Sep 2008 21:47:42 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id 0A6358FC15 for ; Tue, 9 Sep 2008 21:47:41 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id m89LlkWh053221; Tue, 9 Sep 2008 14:47:46 -0700 (PDT) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Tue, 9 Sep 2008 14:47:34 -0700 (PDT) Date: Tue, 9 Sep 2008 14:47:34 -0700 From: Gary Kline To: Roland Smith Message-ID: <20080909214733.GA51272@thought.org> References: <20080909043503.GA21663@thought.org> <20080909165456.GA56556@slackbox.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080909165456.GA56556@slackbox.xs4all.nl> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: FreeBSD Mailing List Subject: Re: how can i use ISO-8859-1?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2008 21:47:42 -0000 On Tue, Sep 09, 2008 at 06:54:56PM +0200, Roland Smith wrote: > On Mon, Sep 08, 2008 at 09:35:07PM -0700, Gary Kline wrote: > > Guys, > > > > This is one of the I've-been-meaning-to-ask questions; > > but other things keep happening that took precedence. Now > > it's time to ask what are the voodoo commands to set up in my > > ~/.zshrc or other initiation files (probably including my muttrc) > > that will let me print to stdout, characters like the "e-aigu" > > or "u-umlaut" and the currency pound or Euro? > > Why settle for ISO-8859-1? Switch to UTF-8 instead, wich can display a > much larger number of characters, and is becoming the standard. > > I added the following to the 'setenv' section of the 'default' profile > in login.conf: > > LC_ALL=en_US.UTF-8 > > AFAICT, the console doesn't have UTF-8 fonts (yet?). But that doesn't > bother me because I always use X anyway. > > So I added the following to my ~/.xinitrc as well: > > export LANG=en_US.UTF-8 > > I installed the rxvt-unicode terminal emulator because it's a lot > lighter then xterm, although both should handle UTF-8. You should use a > unicode font though. I put the following in my ~/.Xresources: I had something like what you've got below all the years I used Ctwm, either in ~/.xinitrc or ~/.Xresources. With more customization in ~/.ctwmrc. Now I'm using primarily KDE and used to their Konsole hack of xterm. Any idea of a URL that has this level of utf-8 for konsole? > > ! for xterm > XTerm*foreground: white > XTerm*background: #010040 > XTerm*utf8: 2 [[ saved away ]] > Rxvt*font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1 > urxvt_transp*font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1 > Rxvt*title: Shell > Rxvt*scrollBar: False > Rxvt*saveLines: 0 > > The critical part is the font specification; it should end with iso10646-1. I used some times-new-roman, but it shouldn't matter as long as either xterm on konsole is there. I hope! > > My /etc/csh.cshrc has some settings for less: > > setenv LESSOPEN '|/usr/bin/lesspipe.sh %s' > setenv LESSCHARSET utf-8 > > Mutt has to be told as well, in ~/.muttrc: > > set charset="utf-8" > set send_charset="us-ascii:iso-8859-15:utf-8" > > In ~/.emacs.el(c) there are some settings as well: > > ;; Set language environment for MULE. > (set-language-environment 'UTF-8) > > ;; My customization for text modes > (defun my-text-mode-hook () > (auto-fill-mode 1) > (show-paren-mode t) > (activate-input-method 'rfc1345) ; Good input method for UTF-8 > ) > (add-hook 'text-mode-hook 'my-text-mode-hook) > > Other programs you should look at are Firefox: edit -> preferences -> > content tab -> Font & Colors, advanced button; default encoding -> > select "Unicode (UTF-8)". All done, thanks. > > Other programs may have settings for unicode, but these are the ones > that spring to mind. > Oh, let me brag about 1/1000th of a bit and announce that after decades of study [on-off] I can read a wee bit of French. Well, given a French-> English diction to translate every third word, :-) aint life great? Oui! gary > Roland > -- > R.F.Smith http://www.xs4all.nl/~rsmith/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org