diff Core/Toolbox.cpp @ 1090:e494ceb8d763

support more encodings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Aug 2014 12:04:23 +0200
parents e07b90fb00eb
children e5686a703c63
line wrap: on
line diff
--- a/Core/Toolbox.cpp	Tue Aug 05 08:49:25 2014 +0200
+++ b/Core/Toolbox.cpp	Tue Aug 05 12:04:23 2014 +0200
@@ -532,6 +532,8 @@
   {
     const char* encoding;
 
+
+    // http://bradleyross.users.sourceforge.net/docs/dicom/doc/src-html/org/dcm4che2/data/SpecificCharacterSet.html
     switch (sourceEncoding)
     {
       case Encoding_Utf8:
@@ -576,6 +578,18 @@
       case Encoding_Hebrew:
         encoding = "ISO-8859-8";
         break;
+        
+      case Encoding_Japanese:
+        encoding = "SHIFT-JIS";
+        break;
+
+      case Encoding_Chinese:
+        encoding = "GB18030";
+        break;
+
+      case Encoding_Thai:
+        encoding = "TIS620.2533-0";
+        break;
 
       default:
         throw OrthancException(ErrorCode_NotImplemented);