in src/Sfx-Standalone/modules/http/response-handlers/json.ts [23:52]
function getEncoding(jsonHeader: string): string {
const matches = Regex_Charset.exec(jsonHeader);
if (!matches) {
return "utf8";
} else {
switch (matches[1]) {
case "usascii":
case "ascii":
return "ascii";
case "utf8":
case "utf-8":
return "utf8";
case "utf16":
case "utf-16":
case "utf16le":
case "utf-16le":
case "ucs2":
case "ucs-2":
return "utf16le";
default:
return undefined;
}
}
}