Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomParsing/ParsedDicomFile.cpp @ 5396:c5f1865aaa3b
Support multiple values in SpecificCharacterSet in C-Find answers
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 11 Oct 2023 12:41:41 +0200 |
parents | 303e930fff0f |
children | aaf7c49a9ddc d5c15e9a63dd |
comparison
equal
deleted
inserted
replaced
5395:c1037a755cee | 5396:c5f1865aaa3b |
---|---|
1002 | 1002 |
1003 if (GetDicomEncoding(encoding, tmp->GetContent().c_str())) | 1003 if (GetDicomEncoding(encoding, tmp->GetContent().c_str())) |
1004 { | 1004 { |
1005 SetEncoding(encoding); | 1005 SetEncoding(encoding); |
1006 } | 1006 } |
1007 else if (permissive) | |
1008 { | |
1009 SetEncoding(defaultEncoding); | |
1010 } | |
1007 else | 1011 else |
1008 { | 1012 { |
1009 throw OrthancException(ErrorCode_ParameterOutOfRange, | 1013 throw OrthancException(ErrorCode_ParameterOutOfRange, |
1010 "Unsupported value for the SpecificCharacterSet (0008,0005) tag: \"" + | 1014 "Unsupported value for the SpecificCharacterSet (0008,0005) tag: \"" + |
1011 tmp->GetContent() + "\""); | 1015 tmp->GetContent() + "\""); |