Function: getCharset()
Function: getCharset()
function getCharset(value, fallback): string;
Get message content charset.
Parameters
value
The incoming message or content type string.
string
| IncomingMessage
fallback
string
= 'utf-8'
Fallback charset if parsing fails.
Returns
string
The charset of the message.