encodingFromLabel

fnXmlDetectedEncoding encodingFromLabel(string label, out bool supported) @safe

Maps a declared encoding label to an internal decoding choice.

Parameters

labelEncoding label (e.g. "UTF-8", "ISO-8859-1", "Windows-1252").
supportedSet to true if the encoding is supported; false otherwise.

Returns

The encoding enum if supported; otherwise XmlDetectedEncoding.UTF8.