Skip to content

The C # version 2.5.2 cannot read DICOM in Chinese path #2433

@TYTYXI

Description

@TYTYXI

Describe the bug
The C # version 2.5.2 cannot read DICOM in Chinese path

error:

WARNING: In D:\a\SimpleITK\SimpleITK\bld\ITK\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx, line 67
GDCMSeriesFileNames (00000295940F8DD0): C:\20250301������ is not a directory

To Reproduce
Steps to reproduce the behavior:

add code:

        ImageSeriesReader seriesReader = new();
        string utf8Path = Encoding.UTF8.GetString(Encoding.Default.GetBytes(dicomFolderPath));
        ImageSeriesReader.GetGDCMSeriesFileNames(dicomFolderPath);
        ImageSeriesReader.GetGDCMSeriesFileNames(utf8Path);

both of GetGDCMSeriesFileNames cannot read dicom in chinese path

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions