private String getDeprecatedEncodingValue(Settings settings) {
		Long langIndex = settings.getLong(DEPRECATED_LANGUAGE_SETTING_NAME);
		Long encodingIndex = settings.getLong(DEPRECATED_ENCODING_SETTING_NAME);

		if (langIndex == null || encodingIndex == null) {
			return null;
		}

		List<String> encodings = languageToCharsetIndexMap.get(langIndex);
		return (encodings != null) && (encodingIndex >= 0 && encodingIndex < encodings.size())
				? encodings.get(encodingIndex.intValue())
				: null;
	}
Backward compatibility to map old MBCS (language_index, charset_index) tuples to a
simple charset_name value.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/CharsetSettingsDefinition.java