Monday, October 4, 2021

Re: opening utf-16 fileencoded ucs-2 Little Endian

Ok it works perfectly.

Thank you Christian.
Nicolas

Le lun. 4 oct. 2021 à 12:44, Christian Brabandt <cblists@256bit.org> a écrit :

On Mo, 04 Okt 2021, Ni Va wrote:

> No error message but I don't happen to read the file.

And you did use ':e! ++enc=utf16le' for the already loaded file? Because
with this exact same command, I can reload the loaded file perfectly.

Alternatively, try to add utf16le to the (global) fileencodings
settings. But you need to add it before utf-8 I believe. So this should
also work:

':set fencs=ucs-bom,utf16le,utf-8,latin9'

But I am not sure, if this will not break for utf-8 files, so I tend to
only explicitly re-load files using the `:e ++enc ` command

BTW: please do not send screenshot files. I am using a text based mail
client, which makes it unnecessary hard to get the information.

Best,
Christian
--
Kalkulierter Gedächtnisverlust ist in der Politik ein
Überlebensmittel.
                -- Hans Maier

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/92aX9rHFCeE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20211004104411.GB1619457%40256bit.org.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOKxv4EPBF1xGgHxtDgk%3DZJ1jmWNOQsne-dK7JFt%2BdnV3R15zg%40mail.gmail.com.

No comments: