GetEncoding Method
Definition
- Namespace
- Codebelt.Extensions.Carter.Response
- Assemblies
- Codebelt.Extensions.Carter.dll
GetEncoding(HttpRequest)
Resolves the character encoding for the HTTP response by inspecting the Accept-Charset header
of the request, falling back to GetDefaultEncoding() when no
valid charset is indicated.
public virtual Encoding GetEncoding(HttpRequest request)
Parameters
requestHttpRequestThe current HttpRequest.