EntityUtils.GetContentCharSet(IHttpEntity) Method

Definition

Gets the character set specified by an HTTP entity's Content-Type header.

[Android.Runtime.Register("getContentCharSet", "(Lorg/apache/http/HttpEntity;)Ljava/lang/String;", "")]
public static string? GetContentCharSet(Org.Apache.Http.IHttpEntity? entity);
[<Android.Runtime.Register("getContentCharSet", "(Lorg/apache/http/HttpEntity;)Ljava/lang/String;", "")>]
static member GetContentCharSet : Org.Apache.Http.IHttpEntity -> string

Parameters

entity
IHttpEntity

The HTTP entity whose content type is inspected.

Returns

The character set value, or null when it is not specified.

Attributes

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to