Commit 2fb6b86d0ece50c7fefd3a7e278eb880c8a528cc
1 parent
f91765a8
Exists in
master
and in
68 other branches
FIX: Decoding study description to avoid a UnicodeDecodeError in Linux. Related to ticket #100
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
invesalius/reader/dicom.py
... | ... | @@ -1364,7 +1364,8 @@ class Parser(): |
1364 | 1364 | data = self.vtkgdcm_reader.GetMedicalImageProperties()\ |
1365 | 1365 | .GetStudyDescription() |
1366 | 1366 | if (data): |
1367 | - return data | |
1367 | + encoding = self.GetEncoding() | |
1368 | + return data.decode(encoding) | |
1368 | 1369 | return "" |
1369 | 1370 | |
1370 | 1371 | def GetStudyAdmittingDiagnosis(self): | ... | ... |