HTML no longer uses IANA encoding names
Official development repository for Vim's builtin TOhtml plugin
Brought to you by:
fritzophrenic
Originally created by: fritzophrenic
Original report by Ben Fritz (Bitbucket: fritzophrenic NA, ).
HTML 5 has its own list of names, we should use that.
Related: should probably also declare doctype as HTML5 when not using XHTML.
Reference:
Originally posted by: fritzophrenic
Original comment by Ben Fritz (Bitbucket: fritzophrenic NA, ).
Actually better to use the version released with the 5.1 spec? https://www.w3.org/TR/encoding/
Checking for differences may be a good idea. Is it scriptable to get the list?
Originally posted by: fritzophrenic
Original comment by Ben Fritz (Bitbucket: fritzophrenic NA, ).
Note also UTF-16 should omit the meta tag and use a BOM instead.
Originally posted by: fritzophrenic
Original comment by Ben Fritz (Bitbucket: fritzophrenic NA, ).
Also consider what to do with encodings to avoid.