changeset 2283:2a15186ca28a

more generic fix for issue #49
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 12 Jun 2017 15:35:14 +0200
parents 4e27c2a598d4
children 489f656ea596
files OrthancServer/Search/HierarchicalMatcher.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Search/HierarchicalMatcher.cpp	Fri Jun 09 17:57:42 2017 +0200
+++ b/OrthancServer/Search/HierarchicalMatcher.cpp	Mon Jun 12 15:35:14 2017 +0200
@@ -333,7 +333,7 @@
                                                       dicom.GetEncoding()));
 
     std::auto_ptr<ParsedDicomFile> result(new ParsedDicomFile(*dataset));
-    result->ChangeEncoding(Encoding_Utf8);
+    result->SetEncoding(dicom.GetEncoding());
 
     return result.release();
   }