Encoding names are inconsistent. e.g. iso-8859-1 is also available as iso8859-1 and iso_8859-1. utf-16le is also available as utf16le.
But:
utf8 should also be available as utf-8
utf16 should also be available as utf-16
There may be others.
It'd be nice if the encoding labels all had their variants built-in so that I could just read content-type: text/html; charset=utf-8 => encoding.decode(..., charset)
Encoding names are inconsistent. e.g.
iso-8859-1
is also available asiso8859-1
andiso_8859-1
.utf-16le
is also available asutf16le
.But:
There may be others.
It'd be nice if the encoding labels all had their variants built-in so that I could just read
content-type: text/html; charset=utf-8
=> encoding.decode(..., charset)