The latest TOhtml (7.3_v7) included in the last runtime update
includes updates to the auto-detection of HTML encoding from the
'fenc' and 'enc' options in Vim.

One of the updates was to add an option so that the user can add
auto-detection of encodings that the plugin does not use by default
(TOhtml now only uses by default those encodings listed by name in
:help encoding-names).

I have made a separate plugin, tohtml_wincp, that will add all
installed codepages to the auto-detect mechanism on a Windows system.
Just like the TOhtml plugin, only those encodings with widespread
browser support will automatically be used, but you can specify to use
any of them manually.

http://www.vim.org/scripts/script.php?script_id=3316

If you frequently work with alternate encodings on a Windows system,
you might like to install this plugin.

I could not find a good way to do something similar on Unix-like
systems. According to the man pages I could find, iconv --list should
give a good starting point, but its output is system dependent. If you
frequently work with alternate encodings on Unix, and want to make
something similar, please share!

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui