fre 2003-10-17 klockan 12.38 skrev Andre Luis Lopes: > BTW, I have tried to use GNOME's 2.2 Terminal (gnome-terminal) and to > switch between my default locale (ISO-8859-1) and UTF-8. Well, at least > there's a menu option in gnome-terminal which says it can swithc between > ISO-8859-1 and UTF-8. When I switched to UTF-8 using this option I could > read the changelogs encoded in UTF-8 properly so I thought I could also > just type text in the changelogs while in gnome-terminal's UTF-8 mode. > > If I understood it correctly, I should also be using and editor which > does support UTF-8. I was using only "vim" in gnome-terminal's UTF-8 > locale mode. Could someone please give me a hint regarding an editor > which does support displaying *and* writing correctly in UTF-8 ?
I'm not sure how gnome-terminal's locale switching works, since I use a UTF-8 locale. But with a latin1 locale, you can try to put the following in your .vimrc: set fileencodings=utf-8,latin1 set termencoding=latin1 This will have the side effect that if you edit an ascii file and add non-ascii characters, the file will be saved as utf-8 by default (you can change it with :set fileencoding=latin1). /Martin -- Martin Sjögren [EMAIL PROTECTED] -- [EMAIL PROTECTED] GPG key: http://www.mdstud.chalmers.se/~md9ms/gpg.html let hello = "hello" : hello in putStr (unlines hello)
signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel