changeset 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 c1037a755cee
children e7f6ec8cbc35 54bed7c93d6a
files NEWS OrthancFramework/Sources/DicomParsing/ParsedDicomFile.cpp
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Fri Oct 06 16:46:51 2023 +0200
+++ b/NEWS	Wed Oct 11 12:41:41 2023 +0200
@@ -24,6 +24,9 @@
 * Fix loading of DCMTK dictionary in the MultitenantDicom plugin when built dynamically:
   https://discourse.orthanc-server.org/t/dimse-failure-using-multitenant-plugin/3665
 * Housekeeper: Introduced a 'sleep' to lower CPU usage when idle.
+* Support multiple values in SpecificCharacterSet in C-Find answers:
+  https://discourse.orthanc-server.org/t/c-find-fails-on-unknown-specific-character-set-iso-2022-ir-6-iso-2022-ir-100/3947
+  
 
 
 Version 1.12.1 (2023-07-04)
--- a/OrthancFramework/Sources/DicomParsing/ParsedDicomFile.cpp	Fri Oct 06 16:46:51 2023 +0200
+++ b/OrthancFramework/Sources/DicomParsing/ParsedDicomFile.cpp	Wed Oct 11 12:41:41 2023 +0200
@@ -1004,6 +1004,10 @@
       {
         SetEncoding(encoding);
       }
+      else if (permissive)
+      {
+        SetEncoding(defaultEncoding);
+      }
       else
       {
         throw OrthancException(ErrorCode_ParameterOutOfRange,