Freigeben über


InputSource.Encoding Property

Definition

Get the character encoding for a byte stream or URI. -or- Set the character encoding, if known.

public virtual string? Encoding { [Android.Runtime.Register("getEncoding", "()Ljava/lang/String;", "GetGetEncodingHandler")] get; [Android.Runtime.Register("setEncoding", "(Ljava/lang/String;)V", "GetSetEncoding_Ljava_lang_String_Handler")] set; }
[<get: Android.Runtime.Register("getEncoding", "()Ljava/lang/String;", "GetGetEncodingHandler")>]
[<set: Android.Runtime.Register("setEncoding", "(Ljava/lang/String;)V", "GetSetEncoding_Ljava_lang_String_Handler")>]
member this.Encoding : string with get, set

Property Value

The encoding, or null if none was supplied.

Attributes

Remarks

Property getter documentation:

Get the character encoding for a byte stream or URI. This value will be ignored when the application provides a character stream.

Java documentation for org.xml.sax.InputSource.getEncoding().

Property setter documentation:

Set the character encoding, if known.

The encoding must be a string acceptable for an XML encoding declaration (see section 4.3.3 of the XML 1.0 recommendation).

This method has no effect when the application provides a character stream.

Java documentation for org.xml.sax.InputSource.setEncoding(java.lang.String).

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

See also