FileLoader: force an encoding
@swilmet
Submitted by Sébastien Wilmet Link to original bug (#793760)
Description
TeplFileLoader: force a character encoding.
GtkSourceFileLoader has gtk_source_file_loader_set_candidate_encodings(). For TeplFileLoader it's different, it at least needs a way to force a specific encoding, typically coming from the metadata (from the last time that the file was saved with Tepl).
With support for escaping invalid chars (see bug #781374), TeplFileLoader will need to know if invalid chars are to be expected.
So the API can be something like: tepl_file_loader_set_encoding (TeplEncoding *encoding, gboolean expect_invalid_chars);