Mercurial > hg > orthanc
diff OrthancServer/ParsedDicomFile.cpp @ 1091:a66224eec125
encoding tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 Aug 2014 12:28:55 +0200 |
parents | e494ceb8d763 |
children | ba5c0908600c |
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.cpp Tue Aug 05 12:04:23 2014 +0200 +++ b/OrthancServer/ParsedDicomFile.cpp Tue Aug 05 12:28:55 2014 +0200 @@ -1265,11 +1265,13 @@ s = "ISO_IR 138"; break; - /* - case Encoding_Japanese: - s = "ISO_IR 13"; - break; - */ + case Encoding_Japanese: + s = "ISO_IR 13"; + break; + + case Encoding_Chinese: + s = "GB18030"; + break; case Encoding_Thai: s = "ISO_IR 166"; @@ -1279,7 +1281,7 @@ throw OrthancException(ErrorCode_ParameterOutOfRange); } - Replace(DICOM_TAG_SPECIFIC_CHARACTER_SET, "", DicomReplaceMode_InsertIfAbsent); + Replace(DICOM_TAG_SPECIFIC_CHARACTER_SET, s, DicomReplaceMode_InsertIfAbsent); } }