Thursday, April 9, 2015

Re: How to convert plain text from code page Windows 1250 to code page ISO 8859-2?

Ben,

For step 4:
:set fileencoding=cp28592
solves the problem.

It is little bit strange to me that iso-8859-2 has to be written as cp28592 in Vim, but on the other hand "utf-8" is perfectly valid code page name in Vim. I would expect consistency in this case UTF-8 code page written as cp65001 and so not excepting "utf-8" name - see Windows code pages: https://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%29.aspx

But I would prefer to have the same names on both Vim for Linux and Vim for Windows. I have some vimscripts and as I see I will have to have two scripts one for each operating system, I an not very happy about this.

Thanks a lot.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: