Closed ghost closed 1 year ago
SGTM!
We can make encoding
default to utf-8
I can try a PR.
I am not sure whether there is a specific type for the encodings, maybe can be taken from TextDecoder
argument.
I don't think a specific type is available. It seems to be just string
for TextDecoder
.
I don't know whether it would be useful to have a method of this sort:
For methods like latin1, windows-1252 or these from MDN (SO-8859-2, KOI8-R, GBK, etc.)