Scoop API

scoop:scoop.charset:0.1.0

CharsetEncodeOptions

class CharsetEncodeOptions

source · line 68
public
public class CharsetEncodeOptions public constructor(
    /**
     * Whether to emit an initial byte-order mark when supported by the encoding.
     */
    public val emitBom: Boolean = false,
    /**
     * The selected byte order for an encoding that requires an explicit choice.
     */
    public val byteOrder: ByteOrder? = None
)

BOM emission and byte-order selection for encoding Unicode text.

property emitBom

source · line 72
public
public val emitBom: Boolean = false

get: public read-only

Whether to emit an initial byte-order mark when supported by the encoding.

property byteOrder

source · line 76
public
public val byteOrder: ByteOrder? = None

get: public read-only

The selected byte order for an encoding that requires an explicit choice.