Create a decoder for a supported one-byte encoding, given its lowercased name encoding.
encoding
Returns a function decode(arr) that decodes bytes to a string.
decode(arr)
The encoding name (e.g., 'iso-8859-1', 'windows-1252')
Optional
If true, replaces unmapped bytes with replacement character instead of throwing (default: false)
A function that decodes bytes to string
Create a decoder for a supported one-byte
encoding, given its lowercased nameencoding.Returns a function
decode(arr)that decodes bytes to a string.