dicom / ruby-dicom

Library for reading, editing and writing DICOM files, as well as handling DICOM network communication. Written in the Ruby language.
http://dicom.rubyforge.org/
GNU General Public License v3.0
178 stars 67 forks source link

Improvements of encoding compatibility #71

Closed akchan closed 7 years ago

akchan commented 7 years ago

Summary

This pull request improves the compatibility with some Japanese encoding.

Problem

ruby-dicom 0.9.7 can't read dicom headers created by old dicom modality in Japan because these modalities specify character encoding 'ISO 2022 IR 13', 'ISO 2022 IR 13\ISO 2022 IR 87'.

Solution

Ruby can't read entire these encoding but part of these with encoding 'Shift_JIS'. So, this pull request proposes the new DICOM::ENCODING_NAME hash.

dicom commented 7 years ago

Thank you for your contribution, Satoshi.