encoding_get_default_candidates


Description:


[ Version ( replacement = "Encoding.get_default_candidates" ) ]
public SList<unowned Encoding> encoding_get_default_candidates ()

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

See [[email protected]_candidate_encodings].

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.

Returns:

the list of default candidate encodings. Free with g_slist_free.


Namespace: GtkSource
Package: gtksourceview-5



2022 vala-language.org