Commit 5fc42254e0b0af1aff5beceeab07fc095ccab467

Authored by Paulo Henrique Junqueira Amorim
1 parent 448af2fc

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 177  
178 178 # -------------- To Create DICOM Thumbnail -----------
179 179 rvtk = vtkgdcm.vtkGDCMImageReader()
180   - rvtk.SetFileName(str(filepath))
  180 + rvtk.SetFileName(filepath.encoding(utils.get_encoding_operation()))
181 181 rvtk.Update()
182 182  
183 183 try:
... ...