How to fix encoding issues of pydicom in python

风流意气都作罢 提交于 2019-12-07 20:31:48

问题


This is the code:

import dicom

ds = dicom.read_file(FILE_PATH)
print(ds)

Error:

LookupError: unknown encoding: ISO 2022 IR 100

When using pydicom in order to look at data, I got the error above. I found 'ISO 2022 IR 100': 'latin_1' ,according to here.

However, I didn't get how to fix this problem. Can you help me to solve this error?


回答1:


As indicated in the comments, the culprit was an out-of-date version of pydicom. Upgrading to a more recent version fixed this issue.



来源:https://stackoverflow.com/questions/45528897/how-to-fix-encoding-issues-of-pydicom-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!