[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Forcing vim 6.0 to stay in UTF-8 mode in a UTF-8 locale
Markus Kuhn wrote:
>I live now on a planet were any other encoding than UTF-8 does not
exist
me too :)
>when I am in LC_CTYPE=en_GB.UTF-8. How do I tell vim 6.0 (and also
>emacs) to pick the encoding *strictly* based on the locale and look at
>absolutely nothing else? Falling back to ISO 8859-1 is not an option,
>because ISO 8859-1 is completely unknown on my planet.
in my ~/.vimrc i use:
"
set encoding=utf-8
"
I had no problem opening any of those files: vim (6.1) stayed in utf-8,
so that at least should work around your vim problem. (I dont have a
utf-8 locale handy, so I didnt try it the way you are getting it to
fail)
Imo, using locales to specify encodings is thoroughly
outdated/deprecated. All text strings should be in utf-8 all
the time, and when they are not, they should be converted
into utf-8 asap. (for date, currency, and collation,
locales are fine).
Auto detection of encodings is likely equally useless, BOMs
should be ditched/ignored, and UTF-16 should be illegal :)
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/