dicomsort icon indicating copy to clipboard operation
dicomsort copied to clipboard

need to handle character encodings and illegal filename characters

Open pieper opened this issue 11 years ago • 1 comments

Likely most reliable option is map everything to the C Locale and ascii encoding for broadest compatibility with filesystems. Also can search and replace characters like colon, which is invalid on windows as well as slash and backslash.

pieper avatar Apr 18 '13 13:04 pieper

Currently the code is removing characters that are known to be illegal in filenames on various target platforms (like slash and colon).

It's an open question if different character encodings should be converted, since most OS filesystems can handle unicode filenames, so if the dicom file has a patient name with an accented character for example, it should be valid to create a filename with the same character.

To know for sure we would need to find sample dicom data containing a variety of character strings and confirm it works for our target operating systems.

pieper avatar Apr 26 '13 13:04 pieper