src/vs/workbench/contrib/files/browser/editors/fileEditorInput.ts/FileEditorInput/setPreferredEncoding
class FileEditorInput:	setPreferredEncoding(encoding: string): void {
		this.preferredEncoding = encoding;

		// encoding is a good hint to open the file as text
		this.setForceOpenAsText();
	}