[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UTF-8 keyboard mode




Thomas Wolff wrote:

> Mined (my editor...) performs automatic detection of UTF-8 vs Latin-1. 
> It's quite easy.
> I derived the algorithm from a straightforward table of legal/illegal 
> byte sequence patterns.
> It doesn't convert, though, but rather handles the file in its original 
> format. Even mixed-encoding files can be edited.

How much of the file do you need to examine to detect the encoding?

--
Contrary to popular belief, Unix is user friendly.
It just happens to be selective about who it makes friends with.
                                               -- Dave Parnas

--/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/