Share via


Console.Charset Method

Definition

Returns the java.nio.charset.Charset Charset object used for the Console.

[Android.Runtime.Register("charset", "()Ljava/nio/charset/Charset;", "", ApiSince=35)]
public Java.Nio.Charset.Charset? Charset ();
[<Android.Runtime.Register("charset", "()Ljava/nio/charset/Charset;", "", ApiSince=35)>]
member this.Charset : unit -> Java.Nio.Charset.Charset

Returns

a java.nio.charset.Charset Charset object used for the Console

Attributes

Remarks

Returns the java.nio.charset.Charset Charset object used for the Console.

The returned charset corresponds to the input and output source (e.g., keyboard and/or display) specified by the host environment or user. It may not necessarily be the same as the default charset returned from java.nio.charset.Charset#defaultCharset() Charset.defaultCharset().

Added in 17.

Java documentation for java.io.Console.charset().

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