set_candidate_encodings


Description:

[ Version ( since = "3.14" ) ]
public void set_candidate_encodings (SList<SourceEncoding> candidate_encodings)

Sets the candidate encodings for the file loading.

The encodings are tried in the same order as the list.

For convenience, candidate_encodings can contain duplicates. Only the first occurrence of a duplicated encoding is kept in the list.

By default the candidate encodings are (in that order in the list): 1. If set, the SourceFile's encoding as returned by get_encoding. 2. The default candidates as returned by et_default_candidates.

Parameters:

this

a SourceFileLoader.

candidate_encodings

a list of SourceEncodings.