HttpClientConfig.ResponseHeaderEncoding Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows overriding the default (Latin1) encoding for incoming request headers.
Setting this value will in turn set ResponseHeaderEncodingSelector and use the selected encoding for all response headers. The value is then parsed by GetEncoding(String), so use values like: "utf-8", "iso-8859-1", etc.
public string? ResponseHeaderEncoding { get; init; }
member this.ResponseHeaderEncoding : string with get, set
Public Property ResponseHeaderEncoding As String
Property Value
Remarks
Note: If you're using an encoding other than ASCII here, then you may also need to configure your server to send response headers with such an encoding via the corresponding options for the server.
For example, when using Kestrel as the server, use ResponseHeaderEncodingSelector to configure Kestrel to use the same encoding.