Commit 2c2993a808895eab3c1af110fde69e839e545512
1 parent
104a5cde
Exists in
master
and in
67 other branches
FIX: Problem import DICOM file in GUI in the Win 32
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/reader/dicom.py
... | ... | @@ -1925,7 +1925,7 @@ class Image(object): |
1925 | 1925 | self.number = parser.GetImageNumber() |
1926 | 1926 | self.spacing = spacing = parser.GetPixelSpacing() |
1927 | 1927 | self.orientation_label = parser.GetImageOrientationLabel() |
1928 | - self.file = str(parser.filename) #Necessary original is unicode | |
1928 | + self.file = parser.filename.encode('utf-8') #Necessary original is unicode | |
1929 | 1929 | self.time = parser.GetImageTime() |
1930 | 1930 | self.type = parser.GetImageType() |
1931 | 1931 | self.size = (parser.GetDimensionX(), parser.GetDimensionY()) | ... | ... |