- Added support for the Korean character set MS949. Thanks again to Ralf Terdic <ralf.t@gmx.net>!
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353659 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8b1e706aeb
commit
7cd8cd011c
@ -14,6 +14,9 @@ public class Constants
|
||||
/** <p>Codepage for SJIS</p> */
|
||||
public static final int CP_SJIS = 932;
|
||||
|
||||
/** <p>Codepage for MS949</p> */
|
||||
public static final int CP_MS949 = 949;
|
||||
|
||||
/** <p>Codepage for UTF-16</p> */
|
||||
public static final int CP_UTF16 = 1200;
|
||||
|
||||
|
@ -294,6 +294,12 @@ public class VariantSupport extends Variant
|
||||
("Codepage number may not be " + codepage);
|
||||
switch (codepage)
|
||||
{
|
||||
case Constants.CP_UTF16:
|
||||
return "UTF-16";
|
||||
case Constants.CP_UTF8:
|
||||
return "UTF-8";
|
||||
case Constants.CP_MS949:
|
||||
return "ms949";
|
||||
case Constants.CP_MAC_ROMAN:
|
||||
return "MacRoman";
|
||||
case Constants.CP_MAC_JAPAN:
|
||||
@ -328,10 +334,6 @@ public class VariantSupport extends Variant
|
||||
return "MacCroatian";
|
||||
case Constants.CP_SJIS:
|
||||
return "SJIS";
|
||||
case Constants.CP_UTF16:
|
||||
return "UTF-16";
|
||||
case Constants.CP_UTF8:
|
||||
return "UTF-8";
|
||||
default:
|
||||
return "cp" + codepage;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user