When I open a multi-byte file, I get this:
Short term, you can revisit the file with an alternate coding system with revert-buffer-with-coding-system
(select utf-16le then).
Middle term, you can bump the priority of that utf-16le encoding on load with prefer-coding-system
.
Long term, however, you'd better try to understand why emacs did not pick the right encoding. I'm not sure how I can help there though, short of digging inside the coding system guts, or at least have a file to reproduce.
EDIT: Does this file have a BOM ?
If memory serves, Emacs will prompt the User for an encoding if it cannot determine one. When it makes a wrong determination you can use
C-x RET f coding RET
which will use coding
as the coding system for the visited file in the current buffer.
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