public void setCharset(Settings settings, String charset) {
		if (charset == null || charset.isEmpty()) {
			settings.clearSetting(CHARSET_SETTING_NAME);
		}
		else {
			settings.setString(CHARSET_SETTING_NAME, charset);
		}
		settings.clearSetting(DEPRECATED_ENCODING_SETTING_NAME);
		settings.clearSetting(DEPRECATED_LANGUAGE_SETTING_NAME);
	}
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