DICOM files import error of "Encoding is not supported" solution #284
AstiMeowww
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I met a console error says :
"Problems processing the DICOM file D:/example.dcm :
openDicom.DicomException:
Encoding is not supported.
Context:
ParamName: characterSet
ParamValue: GB18030
StackTrace:
at openDicom.Encoding.CharacterRepertoire..ctor (System.String characterSet) [0x00479]"
Normally, if your platform is Windows or Linux, just enable SimpleITK and problem shall be solved. Bet I need to make DICOM reading work in android, and simply read the file in editor won't help because I need this function in realtime.
According to the error, it is because of the encoding of openDicom is limited to a couple of ISO standards, so I opened the encoding file "CharacterRepertoire.cs" in Assets\EasyVolumeRendering\Assets\3rdparty\openDicom\Encoding, add a case of encoding the GB18030 file in "switch (characterSet){}":
before the "default:" case.
I don't know if the GB18030 characters are really read by unity, but the import goes on and, at least, this problem is solved.
I think other than GB18030, any character encoding type not in the list of openDicom could be solved this way.
Hope this would help you.
AstiMeow
Beta Was this translation helpful? Give feedback.
All reactions