How to change encoding to UTF-16?
Whenever I make a repl of HTML (or CSS, etc.) it says <meta charset="utf-8"> within the file. But I would not like UTF-8 in any of my files. I believe it to be a result of the horrifying legacy of Unix text processing, and I despise Unix for its unusable text processing. I would like all of my text including html sources to be in UTF-16. Where is the option to remove UTF-8 and use UTF-16 instead? CRLF newlines as well.
The HTML5 specification forbids the use of the meta element to declare UTF-16, because the values must be ASCII-compatible. Instead you should ensure that you always have a byte-order mark at the very start of a UTF-16 encoded file. In effect, this is the in-document declaration. ~ w3.org
@ReallyBasic So I feature request it. There should be a UTF16-CRLF mode (where it uses UTF-16, in native endianness, with CRLF newlines, may have a BOM), and an ASCII-CRLF mode (it has single byte characters and only allows bytes from 00 to 7F, allowing the use of it in cross-platform C and C++ code). Perhaps also an option to select the default encoding for each type (I personally would use UTF16-CRLF for txt, html, htm, and use ASCII-CRLF for c, cpp, h)