Commit 5fc42254e0b0af1aff5beceeab07fc095ccab467
1 parent
448af2fc
Exists in
master
and in
5 other branches
ENH: Determines the encoding based in the operating system
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/reader/dicom_reader.py
@@ -177,7 +177,7 @@ class LoadDicom(threading.Thread): | @@ -177,7 +177,7 @@ class LoadDicom(threading.Thread): | ||
177 | 177 | ||
178 | # -------------- To Create DICOM Thumbnail ----------- | 178 | # -------------- To Create DICOM Thumbnail ----------- |
179 | rvtk = vtkgdcm.vtkGDCMImageReader() | 179 | rvtk = vtkgdcm.vtkGDCMImageReader() |
180 | - rvtk.SetFileName(str(filepath)) | 180 | + rvtk.SetFileName(filepath.encoding(utils.get_encoding_operation())) |
181 | rvtk.Update() | 181 | rvtk.Update() |
182 | 182 | ||
183 | try: | 183 | try: |