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: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static Encoding getEntityBodyEncoding(
HTTPHeaders oHeaders,
byte[] oBody
)
Public Shared Function getEntityBodyEncoding (
oHeaders As HTTPHeaders,
oBody As Byte()
) As Encoding
public:
static Encoding^ getEntityBodyEncoding(
HTTPHeaders^ oHeaders,
array<unsigned char>^ 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:
EncodingA character encoding, if one could be determined
See Also