getFileEncoding

getFileEncoding(kind: Integer output; unicodeBom: Boolean output);

The getFileEncoding method of the JadeTextEdit class returns the current file kind and Unicode Byte Order Mark (BOM) values associated with the control. It is updated to reflect the values for any file loaded using the loadTextFromFile method or manually set using the setFileEncoding method.

If you want to override these values, you can call the setFileEncoding method and pass as parameters the file encoding values that you require.

The getFileEncoding method parameters are listed in the following table.

Parameter Contains the...

kind

Kind of file, represented by one of the File class kind property constant values.

unicodeBom

Unicode BOM encoding setting present in the file, represented by the File class unicodeBOM property.

2022.0.01 and higher