This topic has not yet been rated - Rate this topic

MediaTypeFormatter::SelectCharacterEncoding Method

Determines the best character encoding for reading or writing an HTTP entity body, given a set of content headers.

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
public:
Encoding^ SelectCharacterEncoding(
	HttpContentHeaders^ contentHeaders
)

Parameters

contentHeaders
Type: HttpContentHeaders

The content headers.

Return Value

Type: System.Text::Encoding
The encoding that is the best match.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.