Skip to content

Fix handling of invalid utf-8 chars in dicom values (KUL_nii2dcm.py)#50

Open
libbrfish wants to merge 1 commit intotreanus:masterfrom
libbrfish:nii2dcm_fix
Open

Fix handling of invalid utf-8 chars in dicom values (KUL_nii2dcm.py)#50
libbrfish wants to merge 1 commit intotreanus:masterfrom
libbrfish:nii2dcm_fix

Conversation

@libbrfish
Copy link
Copy Markdown

Fixes the handling of invalid utf-8 chars in dicom values.

e.g. Patient name containing É is interpreted as an invalid char which results in a typeError when running writeslices (image_slice.SetMetaData).

This fix encodes the dicom values from latin-1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants