On Nov 11, 3:40 am, Tony Mechelynck <[email protected]>
wrote:
> On 11/11/11 04:52, Ben Fritz wrote:
>
> > Oops, that's an artifact of my using the same .vimrc on Unix and
> > Windows. I do something like this, before the code snippet:
>
> > if has('unix')
> >    let s:windows_enc = '8bit-cp1252'
> > else " windows
> >    let s:windows_enc = 'cp1252'
> > endif
>
> You can also use the value 'Windows-1252' (the official name) which is
> known by iconv and so should work both on Unix Vim statically linked
> with +iconv and on Windows Vim dynamically linked with +iconv/dyn if
> iconv.dll or libiconv.dll can be found.
>

Yeah, I tried that too when I got frustrated it wasn't working.
Neither my Windows PC nor the Solaris system I primarily work on
recognize "windows-1252", and in fact the Solaris system doesn't
recognize any of "cp1252", "8bit-cp1252", "8bit-windows-1252",
"windows1252", or "8bit-windows1252" either. So I just stuck with this
version for now, and fall back to latin1 on the Solaris system.

-- 
You received this message from the "vim_use" 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

Reply via email to