how can i use ISO-8859-1??
rsmith at xs4all.nl
Tue Sep 9 16:55:07 UTC 2008
On Mon, Sep 08, 2008 at 09:35:07PM -0700, Gary Kline wrote:
> 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
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:
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:
! for xterm
XTerm*ttyModes: erase ^H
XTerm*vt100.translations: #override \
Home: string("\033[1~") \n\
Delete: string("\033[3~") \n\
! for urxvt
The critical part is the font specification; it should end with iso10646-1.
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:
In ~/.emacs.el(c) there are some settings as well:
;; Set language environment for MULE.
;; My customization for text modes
(defun my-text-mode-hook ()
(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)".
Other programs may have settings for unicode, but these are the ones
that spring to mind.
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080909/bbbb9503/attachment.pgp
More information about the freebsd-questions