Click or drag to resize
UtilitiesgetEntityBodyEncoding Method
WARNING: Potentially slow. WARNING: Does not decode the HTTP Response body; if compressed, embedded META or _charset_ will not be checked Gets (via Headers or Sniff) the provided body's text Encoding. If not found, returns CONFIG.oHeaderEncoding (usually UTF-8).

Namespace: Fiddler
Assembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax
public static Encoding getEntityBodyEncoding(
	HTTPHeaders oHeaders,
	byte[] oBody
)

Parameters

oHeaders
Type: FiddlerHTTPHeaders
HTTP Headers, ideally containing a Content-Type header with a charset attribute.
oBody
Type: SystemByte
byte[] containing the entity body.

Return Value

Type: Encoding
A character encoding, if one could be determined
See Also