Use this page to discuss script 199 charset: read file in proper encoding

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.


It does not look like this plugin will work as advertised for HTML/XML files except in specific cases. There does not appear to be any logic in the code to translate the IANA charset name into a Vim encoding name, e.g. it will try to use "windows-1252" as the fenc instead of translating this to "cp1252".

Additionally, the script has had no updates since the initial upload in 2002. Probably these solutions are better. At least, they are better maintained:

--Fritzophrenic 17:01, March 28, 2011 (UTC)