Commit 2fb6b86d0ece50c7fefd3a7e278eb880c8a528cc

Authored by tfmoraes
1 parent f91765a8

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,7 +1364,8 @@ class Parser():
1364 data = self.vtkgdcm_reader.GetMedicalImageProperties()\ 1364 data = self.vtkgdcm_reader.GetMedicalImageProperties()\
1365 .GetStudyDescription() 1365 .GetStudyDescription()
1366 if (data): 1366 if (data):
1367 - return data 1367 + encoding = self.GetEncoding()
  1368 + return data.decode(encoding)
1368 return "" 1369 return ""
1369 1370
1370 def GetStudyAdmittingDiagnosis(self): 1371 def GetStudyAdmittingDiagnosis(self):