gVim utf-8 in windows
I solved it. It was actually hinted at on the vim web page. http://www.vim.org/download.php#pc
I had to get two files from the gettext project on sourcforge:
- libiconv-1.9.1.bin.woe32.zip (for iconv.dll)
- gettext-runtime-0.13.1.bin.woe32.zip (for intl.dll)
Extract bin/iconv.dll from the libiconv zip and bin/intl.dll from the gettext zip in to your gVim/vim folder. Rename intl.dll to libintl.dll. Overwrite any existing files.
After that it just worked for me. These are the relevant lines from my _vimrc:
if has('gui_running')
set guifont=Courier_New:h10
endif
set encoding=utf-8
They are placed at the top of _vimrc.