diff Core/Enumerations.cpp @ 2401:a051aba0037c

Use "GBK" (frequently used in China) as an alias for "GB18030"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 02 Sep 2017 11:50:08 +0200
parents 7284093111b0
children 5edec967055e
line wrap: on
line diff
--- a/Core/Enumerations.cpp	Fri Sep 01 21:37:19 2017 +0200
+++ b/Core/Enumerations.cpp	Sat Sep 02 11:50:08 2017 +0200
@@ -1415,8 +1415,15 @@
     {
       encoding = Encoding_Japanese;
     }
-    else if (s == "GB18030")
+    else if (s == "GB18030" || s == "GBK")
     {
+      /**
+       * According to tumashu@163.com, "In China, many dicom file's
+       * 0008,0005 tag is set as "GBK", instead of "GB18030", GBK is a
+       * subset of GB18030, and which is used frequently in China,
+       * suggest support it."
+       * https://groups.google.com/d/msg/orthanc-users/WMM8LMbjpUc/02-1f_yFCgAJ
+       **/
       encoding = Encoding_Chinese;
     }
     /*