Encoding.getDefaultCandidates

Gets the list of default candidate encodings to try when loading a file.

See gtksource.file_loader.FileLoader.setCandidateEncodings.

This function returns a different list depending on the current locale (i.e. language, country and default encoding). The UTF-8 encoding and the current locale encoding are guaranteed to be present in the returned list.

class Encoding
static
getDefaultCandidates
()

Return Value

Type: gtksource.encoding.Encoding[]

the list of default candidate encodings. Free with glib.slist.SList.free.