Description
When loading DICOM files with Korean character set (ISO 2022 IR 149), DWV throws unsupported character set warnings and fails to display the images properly.
Steps to Reproduce
- Load a DICOM file with character set 'ISO 2022 IR 149' (Korean encoding)
- Initialize DWV app with default or custom options
- Attempt to display the image
Expected Behavior
The DICOM file should load successfully with proper character encoding support, or at least display the image while ignoring character set issues.
Actual Behavior
- Console warning:
Unsupported character set with code extensions: 'ISO 2022 IR 149'.
- Image fails to display
- No fallback mechanism to handle unsupported character sets
Additional Context
- ISO 2022 IR 149 is the standard character set for Korean language in DICOM
- This issue affects medical institutions in Korea using DWV
- Similar issues might exist for other multi-byte character sets
Suggested Solution
- Add support for ISO 2022 IR 149 character set
- Implement a fallback mechanism to ignore character set errors and still display images
- Add an option to override character set handling
Related Information
- DICOM Standard Part 5, Section 6.1.2.5 (Specific Character Set)
- ISO 2022 IR 149 = Korean (KS X 1001)
Code Example
const app = new dwv.App();
const viewConfig0 = new dwv.ViewConfig('layerGroup0');
const viewConfigs = { '*': [viewConfig0] };
const options = new dwv.AppOptions(viewConfigs);
// Attempted workaround (not working)
options.dataViewConfigs = {
'*': [{
defaultCharacterSet: 'ISO_IR 100'
}]
};
app.init(options);
app.loadURLs(['path/to/korean-dicom.dcm']);
Description
When loading DICOM files with Korean character set (ISO 2022 IR 149), DWV throws unsupported character set warnings and fails to display the images properly.
Steps to Reproduce
Expected Behavior
The DICOM file should load successfully with proper character encoding support, or at least display the image while ignoring character set issues.
Actual Behavior
Unsupported character set with code extensions: 'ISO 2022 IR 149'.Additional Context
Suggested Solution
Related Information
Code Example