changeset 1093:552a038f7c96

Default encoding is Latin-1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Aug 2014 13:08:41 +0200
parents 88fcf73fbe39
children 1b905ad6c913
files OrthancServer/FromDcmtkBridge.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/FromDcmtkBridge.cpp	Tue Aug 05 12:36:53 2014 +0200
+++ b/OrthancServer/FromDcmtkBridge.cpp	Tue Aug 05 13:08:41 2014 +0200
@@ -120,9 +120,9 @@
 
   Encoding FromDcmtkBridge::DetectEncoding(DcmDataset& dataset)
   {
-    // By default, Ascii encoding is assumed (this removes all the special charaters)
+    // By default, Latin1 encoding is assumed
     std::string s = Configuration::GetGlobalStringParameter("DefaultEncoding", "");
-    Encoding encoding = s.empty() ? Encoding_Ascii : StringToEncoding(s.c_str());
+    Encoding encoding = s.empty() ? Encoding_Latin1 : StringToEncoding(s.c_str());
 
     OFString tmp;
     if (dataset.findAndGetOFString(DCM_SpecificCharacterSet, tmp).good())