Android Guides | Samples

Java.Nio.Charset.Charset.DefaultCharset Method

Returns the system's default charset.

Syntax

[Android.Runtime.Register("defaultCharset", "()Ljava/nio/charset/Charset;", "")]
public static Charset DefaultCharset ()

Remarks

Returns the system's default charset. This is determined during VM startup, and will not change thereafter. On Android, the default charset is UTF-8.

[Android Documentation]

Requirements

Namespace: Java.Nio.Charset
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1