I have a utf-16-le based file with a bom which I can view on a linux host with vi without issue:
# file utf16.txt
utf16.txt: Little-endian UTF-16 Unicode text, with CRLF line terminators
# od -t x1 -N 2 utf16.txt
0000000 ff fe
0000002
It opens and appears as expected with vi at the console (see vim_linux.png).
However on Windows when I reload it with :e ++ff=dos ++enc=utf-16le it displays as the attached gvim_windows.png. No incantation of settings I can come up allow me to open and edit this on Windows.
Anyone have an idea how to accomplish this?
Thanks.
--
--
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.
Saturday, September 9, 2017
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment