setFileEncoding

setFileEncoding(kind: Integer; unicodeBom: Boolean);

The setFileEncoding method of the JadeTextEdit class sets the file kind and Unicode Byte Order Mark (BOM) encoding to be used when the saveTextToFile method is called. If the setFileEncoding method is not called, the encoding is native ANSI or Unicode.

The setFileEncoding method parameters are listed in the following table.

Parameter Description

kind

Contains the kind of file that is to be saved, represented by one of the File class kind property constant values.

If the specified value is zero (0), the encoding of the file is native ANSI or Unicode.

unicodeBom

Specifies whether a Unicode BOM is present in the file, represented by the File class unicodeBOM property.

2022.0.01 and higher