Condividi tramite


Handler.Encoding Property

Definition

Return the character encoding for this Handler. -or- Set the character encoding used by this Handler.

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 name. May be null, which indicates the default encoding should be used.

Attributes

Exceptions

if charsetName is not supported.

Remarks

Property getter documentation:

Return the character encoding for this Handler.

Java documentation for java.util.logging.Handler.getEncoding().

Property setter documentation:

Set the character encoding used by this Handler.

The encoding should be set before any LogRecords are written to the Handler.

Java documentation for java.util.logging.Handler.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