GetCharset

DicomEncoding.GetCharset method

Get DICOM character set from .NET Encoding.

public virtual string GetCharset(Encoding encoding, bool extended = false)
ParameterTypeDescription
encodingEncoding.NET Encoding.
extendedBooleanIf true, the extended version of the character set is returned.

Return Value

The String Specific Character Set as defined in DICOM.

Exceptions

exceptioncondition
ArgumentExceptionNo character set found for the encoding.

See Also