diff Core/Toolbox.cpp @ 1087:e07b90fb00eb

more encodings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Aug 2014 18:12:21 +0200
parents 64f1842aae2e
children e494ceb8d763
line wrap: on
line diff
--- a/Core/Toolbox.cpp	Mon Aug 04 17:57:45 2014 +0200
+++ b/Core/Toolbox.cpp	Mon Aug 04 18:12:21 2014 +0200
@@ -539,12 +539,44 @@
         return source;
 
       case Encoding_Ascii:
-        return ConvertToAscii(source);;
+        return ConvertToAscii(source);
 
       case Encoding_Latin1:
         encoding = "ISO-8859-1";
         break;
 
+      case Encoding_Latin2:
+        encoding = "ISO-8859-2";
+        break;
+
+      case Encoding_Latin3:
+        encoding = "ISO-8859-3";
+        break;
+
+      case Encoding_Latin4:
+        encoding = "ISO-8859-4";
+        break;
+
+      case Encoding_Latin5:
+        encoding = "ISO-8859-9";
+        break;
+
+      case Encoding_Cyrillic:
+        encoding = "ISO-8859-5";
+        break;
+
+      case Encoding_Arabic:
+        encoding = "ISO-8859-6";
+        break;
+
+      case Encoding_Greek:
+        encoding = "ISO-8859-7";
+        break;
+
+      case Encoding_Hebrew:
+        encoding = "ISO-8859-8";
+        break;
+
       default:
         throw OrthancException(ErrorCode_NotImplemented);
     }