Skip to content

Reading dicom file #373

@Hyunsoo-dev

Description

@Hyunsoo-dev

When i used the code below,

let DicomDict = dcmjs.data.DicomMessage.readFile(dicomFile);

i �got the error as below.

Using multiple character sets is not supported: ,ISO 2022 IR 149

But the standard document says you can put multiple values in a specific character set (0008, 0005).
I'm curious why you limited the number of character set, can you change this restriction?
image

/// dcmjs.js -> line 10072
if (readInfo.values.length > 1) {
    if (ignoreErrors) {
	    log.warn("Using multiple character sets is not supported, proceeding with just the first character set", readInfo.values);
    } else {
	    throw Error("Using multiple character sets is not supported: ".concat(readInfo.values));
   }
}
readInfo.values = ["ISO_IR 192"]; // change SpecificCharacterSet to UTF-8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions