From: Edward H. Trager (firstname.lastname@example.org)
Date: Mon Aug 18 2003 - 13:14:43 EDT
(1) If you don't want to change the LANG setting, just
setting LC_CTYPE=en_US.UTF-8 should be sufficient.
(2) It also will likely be the case that the terminal under
which you are running VIM also needs to have been
started in a UTF-8 locale. Make sure that the terminal
is UTF-8 capable. For example, my recollection is that
KDE's Konsole works very well for UTF-8 as long as you
start it with LANG or LC_CTYPE set to a UTF-8 locale. But
if Konsole was started in your default ISO-8859-1 locale
and then you try "LC_CTYPE=en_US.UTF-8 vim ", you still
get garbled UTF-8 characters because Konsole itself is
still in ISO-8859-1. Similar results may occur with
xterm or mlterm.
(3) The easiest solution, IMO, is simply "export LANG=en_US.UTF-8"
in your .profile so that everything program will run under
a UTF-8 locale. For recent Linux distributions, this should
work very well for you.
On Monday 2003.08.18 12:28:34 -0400, Noah Levitt wrote:
> Try running vim in a UTF-8 locale.
> $ LANG=en_US.UTF-8 vim
> Also, see ":help termencoding".
> On Mon, Aug 18, 2003 at 17:50:42 +0200, Stefan Persson wrote:
> > Hi!
> > I am using Vi (version Vi IMproved 6.1) on Linux using UTF-8 (xterm
> > -u8). If a UTF-8 characters does, when misinterpreted as Latin-1,
> > contain a control character, that character is displayed as something
> > different. For example, the Swedish capital "Ä" is displayed as a
> > square box followed by '~D'. Is there a way to get rid of this problem?
> > Stefan
This archive was generated by hypermail 2.1.5 : Mon Aug 18 2003 - 14:05:02 EDT