I’ve got a problem I am not able to solve. I have to write a German word containing the letters ‘ö’ and ‘ä’ into the MetaData of our Dicom-File. However SITK’s SetMetaData refuses to write it. It always gets encoded to Ã¶ and Ã¤, no matter what I try.
Unfortunately I can’t switch to ‘oe’ for ‘ö’ or ‘ae’ for ä since our PACS won’t match it to previous scans with that word.
I was wondering if there is a proper way to get SetMetaData to use the unicode encoding, because I know that that works for our PACS and I’ve seen other datasets do it like that.
What I’ve tried so far:
- ‘ABCäXYZ’.encode() with probably almost any existing encoding
- Checked the file with Hex Editor: Wrong: ä as Bytes C3 A4. Correctly represented in PACS would be: Byte E4
- Played with 0008|0005
- I made sure that the string changes everytime I try something new in case something breaks
I am at my wits’ end, so any input is appreciated, even if it’s just telling me that it’s not possible!
Thanks for your help.