Convert a dataset IR 192 (UTF-8)? #454
-
I've been going over the Discussions and Issues and went through the code. But still I'd figure I make sure, so I hope you don't mind me asking. When users add dicom data to my system I want to make sure it is ISO_IR 192 (UTF-8). Is changing the character set of the dcm_file.put_element(InMemElement::new(
tags::SPECIFIC_CHARACTER_SET,
VR::CS,
ISO_IR_192,
)); |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
To partly answer my own question: It is not enough. It works on mosts datasets I tried, but for datasets that contain sequences it fails because the sequence length changes when the character set changes. I'm trying to write a function now that does the conversion. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the question! The DICOM parser in crate With that said, the problem that you stumbled upon is definitely bug in the data set writing function, which was caused by retaining specified lengths in data set sequences, even after modifying the specific character set. I envision 3 directions moving forward:
Anther slightly related discussion: #401 |
Beta Was this translation helpful? Give feedback.
-
Closing this discussion as this issue is now resolved. (#456) |
Beta Was this translation helpful? Give feedback.
Closing this discussion as this issue is now resolved. (#456)