Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 2008 14:47:34 -0700
From:      Gary Kline <kline@thought.org>
To:        Roland Smith <rsmith@xs4all.nl>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: how can i use ISO-8859-1??
Message-ID:  <20080909214733.GA51272@thought.org>
In-Reply-To: <20080909165456.GA56556@slackbox.xs4all.nl>
References:  <20080909043503.GA21663@thought.org> <20080909165456.GA56556@slackbox.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080909214733.GA51272>