Hi,
I downloaded a new version of vim that promises to support UTF-8 (
version 6.0au BETA), but still have the problem, that some characters
are displayed properly but some are not.
My system is a SuSE 7.2, Kernel 2.4.4, XFree86 4.1.0, KDE 2.2; the LANG
environment variable is set to "de_DE.UTF-8".
Both xterm and the KDE Konsole properly display UTF-8 characters (I
tried German and Russian characters in file names), less, cat and more
properly display German and Russian UTF-8 encoded text files. I can type
both in German and Russian in xterm and Konsole using the KDE keyboard
switching utility.
But vim 6.0au does not display some characters properly: e.g. German
lowercase umlauts are displayed properly, uppercase umlauts and ß are
not. The string
ä-Ä-ö-Ö-ü-Ü-ß
is displayed in vim as
ä- ~D-ö- ~V-ü- ~\- ~_?
and the Russian string
фывапролджэ
(you guess, it's the second row on a Russian keyboard ;-)
is displayed in vim as
~D ~K вап ~@олдж ~M
that is, 7 characters are displayed in the right way an 4 are not.
Internally, the vim seems to handle the characters correctly: when I
save such a document and view it with less or cat, all characters are as
they should be. It's just the display in vim that is not right, both in
xterm and KDE Konsole.
Any hints? Did I miss some needed configuration?
In xterm and the KDE Konsole, I still have some problems with the
Backspace and arrow keys. When trying to delete a character or moving
backwards and forwards in a string on the command line with the arrow
keys, obviously only one byte is deleted or moved and not the whole
character (if it is a non-ascii character). This is very confusing and
often produces errors when working on the command line - how this can be
fixed?
Christoph
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/