Skip to content

kiwi.nio.Charset

Nikos Siatras edited this page Sep 29, 2022 · 6 revisions

This is the Charset Type of Kiwi. It exists inside the kiwi\nio\Charset.bi file.

Charset Class Methods

Method Description
Charset.forName(charsetName as String) Returns a new Charset instance
Charset.getCharsetName() Returns the charset's name

Charset Static Fields

Field Description
Charset.ASCII Returns an ASCII Charset instance
Charset.UTF8 Returns a UTF8 Charset instance

Charset Examples

#include once "kiwi\kiwi.bi"

' Initialize a new UTF8 charset
Dim utf8Charset as Charset = Charset.forName("utf8")
#include once "kiwi\kiwi.bi"

' Initialize charset from Charset static fields
Dim asciiCharset as Charset = Charset.ASCII
Dim utf8Charset as Charset = Charset.UTF8