Charset.ForName(String) Charset.ForName(String) Method

Definition

Returns a Charset instance for the named charset.

[Android.Runtime.Register("forName", "(Ljava/lang/String;)Ljava/nio/charset/Charset;", "")]
public static Java.Nio.Charset.Charset ForName (string charsetName);
static member ForName : string -> Java.Nio.Charset.Charset

Parameters

charsetName
String String

a charset name (either canonical or an alias)

Returns

Exceptions

if the specified charset name is illegal.

if the desired charset is not supported by this runtime.

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