I'm trying to look at a file that was saved without a BOM as wchar text. In my gVim window I see:
T^@E^@X^@T^@H^@E^@R^@
...which is really annoying. I want to edit this file as a regular text document, and I'd like vim to save it in the same format. I've tried doing :set encoding=utf-16
(and other variations such as utf-16le
, ucs-2
, and ucs-2le
, but the document view never changes. How can I accomplish this?
You can reload the file with the appropriate encoding:
:e ++enc=utf-16
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With