>
> response.setContentType("text/html;charset=KSC5601");
> response.setContentType("text/html;charset=EUC_KR");
> response.setContentType("text/html;charset=EUC-KR");
> response.setContentType("text/html;charset=euc-kr");
> response.setContentType("text/html;charset=euc_kr");
> response.setContentType("text/html;charset=ksc5601");
>
> 위에서 어떤 것은 맞고 어떤 것은 틀렸습니까?
선듯 대답하기 힘드시죠?
Windows에서의 JVM의 한글디폴트 인코딩 캐릭터셋 문자열은 "EUC_KR" 입니다.
Linux에선 "KSC5601"이라 나오는 군요.
그러나 "EUC_KR", "KSC5601", "EUC-KR"은 모두 동일합니다.
단, 아래를 유심히 보시면서 주의하세요.
가능한 형태: EUC-KR, euc-kr, EUC-kr,Euc-kr, euc-KR, ...
: "-"(minus) 가 붙은 경우 대소문자 상관없음
KSC5601, ksc5601, Ksc5601, kSC5601, ...
: 대소문자 상관없음
EUC_KR
불가능한 형태 : euc_kr, EUC_kr, eUc_kr, ....
( "_"(underbar) 가 붙은 경우 오직 EUC_KR 만 가능)
[서블렛에서]
response.setContentType("text/html;charset=euc-kr");
[JSP 에서]
<%@ page contentType="text/html;charset=euc-kr" %>
PS: "chatset=" 을 사용하실 때 빈공간이 있으면 안됩니다.
잘된 사용:
response.setContentType("text/html;charset=euc-kr");
response.setContentType("text/html; charset=euc-kr"); (이것은 가능함)
잘못된 사용:
response.setContentType("text/html;charset = euc-kr");
response.setContentType("text/html;charset= euc-kr");
response.setContentType("text/html;charset =euc-kr");
response.setContentType("text/html; charset = euc-kr");
response.setContentType("text/html; charset =euc-kr");
response.setContentType("text/html; charset= euc-kr");
이렇게 해야 하는 이유는 소스를 보니까, ";" 문자 이후부터 "charset=" 이란
문자열이 나오는 index를 추출한 후 그 뒷 문자열을 취하는 로직으로 되어 있기
때문입니다.
-------------------------------------------------------
본 문서는 자유롭게 배포/복사 할 수 있으나 반드시
이 문서의 저자에 대한 언급을 삭제하시면 안됩니다
================================================
자바서비스넷 이원영
E-mail: javaservice@hanmail.net
PCS:019-310-7324
================================================
제목 : Re: [팁] EUC-KR, KSC5601, euc-kr , etc..
글쓴이: 손님(guest) 2001/03/21 15:48:18 조회수:8723 줄수:12
[추가 정보]
response.setContentType() 에 지정하는 charset은 JVM이 이해하는 encoding 이름을
사용하기만 하면 됩니다.
한글이라는 걸 지정할 때 사용할 수 있는 encoding이 여러개가 있는데
이중 하나만 진짜이고 나머지는 모두 alias입니다.
일반적으로 5601 또는 EUC_KR 정도가 진짜인데 이건 순전히 JDK 버전에 따라 달라집니다.
진짜와 가짜의 구분도 그리 중요한건 아닙니다.
진짜가 의미하는 바는 단순히 Charset Converter의 이름과 일치하는 놈이 진짜라는거죠.
예를 들어, EUC_KR이 진짜인 JDK에는 반드시 ByteToCharEUC_KR 같은 클래스가 존재합니다.
Alias를 지정할 경우에는 JVM이 알아서 해당 encoding의 진짜 이름을 알아낸 후
그 이름을 가지고 위에서 언급한 것과 같은 클래스를 로딩해서 처리하게 됩니다.
제목 : Re: JDK의 Charset Converter에 bug가 있습니다.
글쓴이: 조민수(msjo66) 2002/11/19 00:07:07 조회수:260 줄수:4
한 site를 지원하다가 character set을 "euc-kr"로 했을 때 성능이 너무나 저하되는 현상이
발견되어 아래와 같은 bug를 발견했습니다.
http://developer.java.sun.com/developer/bugParade/bugs/4370850.html
jdk 1.3.1_07에서 해결이 되었습니다.
제목 : Re: sun.io.CharacterEncoding 진짜와 가짜
글쓴이: 이원영(javaservice) 2003/11/14 20:29:46 조회수:1229 줄수:477
// Decompiled by Jad v1.5.8d. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3)
// Source File Name: CharacterEncoding.java
package sun.io;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Hashtable;
import java.util.Locale;
public class CharacterEncoding
{
public CharacterEncoding()
{
}
private static final String ibmJVMGetExcludedFields()
{
return new String("aliasTable");
}
private static String replaceDash(String s)
{
char ac[] = s.toCharArray();
for(int i = 0; i < ac.length; i++)
if(ac[i] == '_')
ac[i] = '-';
return new String(ac);
}
public static String aliasName(String s)
{
String s1 = s.toLowerCase(Locale.US);
String s2 = (String)aliasTable.get(s1);
if(s2 != null)
return s2;
if(s1.startsWith("cp"))
return (String)aliasTable.get("ibm-" + s1.substring(2));
if(s1.startsWith("ibm"))
return (String)aliasTable.get("ibm-" + s1.substring(3));
if(s1.indexOf('_') >= 0)
return (String)aliasTable.get(replaceDash(s1));
else
return (String)aliasTable.get("ibm-" + s1);
}
static String getSJISName()
{
String s = (String)AccessController.doPrivileged(new PrivilegedAction() {
public Object run()
{
return System.getProperty("file.encoding", null);
}
});
if(s != null)
{
if(s.equals("MS932"))
return s;
s = aliasName(s);
}
return s == null || !s.equals("MS932") ? "SJIS" : s;
}
private static Hashtable aliasTable;
static
{
aliasTable = new Hashtable(512);
aliasTable.put("us-ascii", "ASCII");
aliasTable.put("ascii", "ASCII");
aliasTable.put("646", "ASCII");
aliasTable.put("iso_646.irv:1983", "ASCII");
aliasTable.put("ansi_x3.4-1968", "ASCII");
aliasTable.put("iso646-us", "ASCII");
aliasTable.put("default", "ASCII");
aliasTable.put("ascii7", "ASCII");
aliasTable.put("8859_1", "ISO8859_1");
aliasTable.put("iso_8859-1:1987", "ISO8859_1");
aliasTable.put("iso-ir-100", "ISO8859_1");
aliasTable.put("iso-8859-1", "ISO8859_1");
aliasTable.put("iso8859-1", "ISO8859_1");
aliasTable.put("latin1", "ISO8859_1");
aliasTable.put("l1", "ISO8859_1");
aliasTable.put("ibm-819", "ISO8859_1");
aliasTable.put("csisolatin1", "ISO8859_1");
aliasTable.put("ansi_x3.4-1968", "ISO8859_1");
aliasTable.put("8859_2", "ISO8859_2");
aliasTable.put("iso_8859-2:1987", "ISO8859_2");
aliasTable.put("iso-ir-101", "ISO8859_2");
aliasTable.put("iso-8859-2", "ISO8859_2");
aliasTable.put("iso8859-2", "ISO8859_2");
aliasTable.put("latin2", "ISO8859_2");
aliasTable.put("l2", "ISO8859_2");
aliasTable.put("ibm-912", "ISO8859_2");
aliasTable.put("csisolatin2", "ISO8859_2");
aliasTable.put("8859_3", "ISO8859_3");
aliasTable.put("iso_8859-3:1988", "ISO8859_3");
aliasTable.put("iso-ir-109", "ISO8859_3");
aliasTable.put("iso-8859-3", "ISO8859_3");
aliasTable.put("iso8859-3", "ISO8859_3");
aliasTable.put("latin3", "ISO8859_3");
aliasTable.put("l3", "ISO8859_3");
aliasTable.put("ibm-913", "ISO8859_3");
aliasTable.put("csisolatin3", "ISO8859_3");
aliasTable.put("8859_4", "ISO8859_4");
aliasTable.put("iso_8859-4:1988", "ISO8859_4");
aliasTable.put("iso-ir-110", "ISO8859_4");
aliasTable.put("iso-8859-4", "ISO8859_4");
aliasTable.put("iso8859-4", "ISO8859_4");
aliasTable.put("latin4", "ISO8859_4");
aliasTable.put("l4", "ISO8859_4");
aliasTable.put("ibm-914", "ISO8859_4");
aliasTable.put("csisolatin4", "ISO8859_4");
aliasTable.put("8859_5", "ISO8859_5");
aliasTable.put("iso_8859-5:1988", "ISO8859_5");
aliasTable.put("iso-ir-144", "ISO8859_5");
aliasTable.put("iso-8859-5", "ISO8859_5");
aliasTable.put("iso8859-5", "ISO8859_5");
aliasTable.put("cyrillic", "ISO8859_5");
aliasTable.put("csisolatincyrillic", "ISO8859_5");
aliasTable.put("ibm-915", "ISO8859_5");
aliasTable.put("8859_6", "ISO8859_6");
aliasTable.put("iso_8859-6:1987", "ISO8859_6");
aliasTable.put("iso-ir-127", "ISO8859_6");
aliasTable.put("iso-8859-6", "ISO8859_6");
aliasTable.put("iso8859-6", "ISO8859_6");
aliasTable.put("ecma-114", "ISO8859_6");
aliasTable.put("asmo-708", "ISO8859_6");
aliasTable.put("arabic", "ISO8859_6");
aliasTable.put("csisolatinarabic", "ISO8859_6");
aliasTable.put("ibm-1089", "ISO8859_6");
aliasTable.put("iso8859-6s", "ISO8859_6S");
aliasTable.put("iso-8859-6s", "ISO8859_6S");
aliasTable.put("8859_7", "ISO8859_7");
aliasTable.put("iso_8859-7:1987", "ISO8859_7");
aliasTable.put("iso-ir-126", "ISO8859_7");
aliasTable.put("iso-8859-7", "ISO8859_7");
aliasTable.put("iso8859-7", "ISO8859_7");
aliasTable.put("elot_928", "ISO8859_7");
aliasTable.put("ecma-118", "ISO8859_7");
aliasTable.put("greek", "ISO8859_7");
aliasTable.put("greek8", "ISO8859_7");
aliasTable.put("csisolatingreek", "ISO8859_7");
aliasTable.put("ibm-813", "ISO8859_7");
aliasTable.put("8859_8", "ISO8859_8");
aliasTable.put("iso_8859-8:1988", "ISO8859_8");
aliasTable.put("iso-ir-138", "ISO8859_8");
aliasTable.put("iso-8859-8", "ISO8859_8");
aliasTable.put("iso8859-8", "ISO8859_8");
aliasTable.put("hebrew", "ISO8859_8");
aliasTable.put("csisolatinhebrew", "ISO8859_8");
aliasTable.put("ibm-916", "ISO8859_8");
aliasTable.put("8859_9", "ISO8859_9");
aliasTable.put("iso-ir-148", "ISO8859_9");
aliasTable.put("iso-8859-9", "ISO8859_9");
aliasTable.put("iso8859-9", "ISO8859_9");
aliasTable.put("latin5", "ISO8859_9");
aliasTable.put("l5", "ISO8859_9");
aliasTable.put("ibm-920", "ISO8859_9");
aliasTable.put("csisolatin5", "ISO8859_9");
aliasTable.put("8859_13", "ISO8859_13");
aliasTable.put("iso-8859-13", "ISO8859_13");
aliasTable.put("iso8859-13", "ISO8859_13");
aliasTable.put("8859_15", "ISO8859_15_FDIS");
aliasTable.put("iso-8859-15", "ISO8859_15_FDIS");
aliasTable.put("iso_8859-15", "ISO8859_15_FDIS");
aliasTable.put("iso8859-15", "ISO8859_15_FDIS");
aliasTable.put("ibm923", "ISO8859_15_FDIS");
aliasTable.put("ibm-923", "ISO8859_15_FDIS");
aliasTable.put("cp923", "ISO8859_15_FDIS");
aliasTable.put("923", "ISO8859_15_FDIS");
aliasTable.put("latin0", "ISO8859_15_FDIS");
aliasTable.put("latin9", "ISO8859_15_FDIS");
aliasTable.put("csisolatin0", "ISO8859_15_FDIS");
aliasTable.put("csisolatin9", "ISO8859_15_FDIS");
aliasTable.put("utf-8", "UTF8");
aliasTable.put("utf8", "UTF8");
aliasTable.put("unicode-1-1-utf-8", "UTF8");
aliasTable.put("unicode-1-1", "UnicodeBigUnmarked");
aliasTable.put("iso-10646-ucs-2", "UnicodeBigUnmarked");
aliasTable.put("utf-16be", "UnicodeBigUnmarked");
aliasTable.put("utf-16le", "UnicodeLittleUnmarked");
aliasTable.put("utf-16", "UTF16");
aliasTable.put("x-utf-16be", "UnicodeBigUnmarked");
aliasTable.put("x-utf-16le", "UnicodeLittleUnmarked");
aliasTable.put("unicode", "Unicode");
aliasTable.put("unicodebig", "UnicodeBig");
aliasTable.put("unicodelittle", "UnicodeLittle");
aliasTable.put("unicodebigunmarked", "UnicodeBigUnmarked");
aliasTable.put("unicodelittleunmarked", "UnicodeLittleUnmarked");
aliasTable.put("utf16", "UTF16");
aliasTable.put("hp-roman8", "Roman8");
aliasTable.put("roman8", "Roman8");
aliasTable.put("r8", "Roman8");
aliasTable.put("ibm-1051", "Roman8");
aliasTable.put("ibm-037", "Cp037");
aliasTable.put("ibm-273", "Cp273");
aliasTable.put("ibm-277", "Cp277");
aliasTable.put("ibm-278", "Cp278");
aliasTable.put("ibm-280", "Cp280");
aliasTable.put("ibm-284", "Cp284");
aliasTable.put("ibm-285", "Cp285");
aliasTable.put("ibm-290", "Cp290");
aliasTable.put("ibm-297", "Cp297");
aliasTable.put("ibm-300", "Cp300");
aliasTable.put("ibm-301", "Cp301");
aliasTable.put("ibm-420", "Cp420");
aliasTable.put("ibm-420s", "Cp420S");
aliasTable.put("ibm-424", "Cp424");
aliasTable.put("ibm-437", "Cp437");
aliasTable.put("cspc8codepage437", "Cp437");
aliasTable.put("ibm-500", "Cp500");
aliasTable.put("ibm-737", "Cp737");
aliasTable.put("ibm-775", "Cp775");
aliasTable.put("ibm-808", "Cp808");
aliasTable.put("ibm-833", "Cp833");
aliasTable.put("ibm-834", "Cp834");
aliasTable.put("ibm-835", "Cp835");
aliasTable.put("ibm-836", "Cp836");
aliasTable.put("ibm-837", "Cp837");
aliasTable.put("ibm-838", "Cp838");
aliasTable.put("ibm-850", "Cp850");
aliasTable.put("cspc850multilingual", "Cp850");
aliasTable.put("ibm-852", "Cp852");
aliasTable.put("cspcp852", "Cp852");
aliasTable.put("ibm-855", "Cp855");
aliasTable.put("cspcp855", "Cp855");
aliasTable.put("ibm-856", "Cp856");
aliasTable.put("ibm-857", "Cp857");
aliasTable.put("csibm857", "Cp857");
aliasTable.put("ibm-858", "Cp858");
aliasTable.put("ibm00858", "Cp858");
aliasTable.put("ibm-859", "Cp859");
aliasTable.put("ibm-860", "Cp860");
aliasTable.put("csibm860", "Cp860");
aliasTable.put("ibm-861", "Cp861");
aliasTable.put("cp-is", "Cp861");
aliasTable.put("csibm861", "Cp861");
aliasTable.put("ibm-862", "Cp862");
aliasTable.put("cspc862latinhebrew", "Cp862");
aliasTable.put("ibm-863", "Cp863");
aliasTable.put("csibm863", "Cp863");
aliasTable.put("ibm-864", "Cp864");
aliasTable.put("csibm864", "Cp864");
aliasTable.put("ibm-864s", "Cp864S");
aliasTable.put("ibm-865", "Cp865");
aliasTable.put("csibm865", "Cp865");
aliasTable.put("ibm-866", "Cp866");
aliasTable.put("csibm866", "Cp866");
aliasTable.put("ibm-867", "Cp867");
aliasTable.put("ibm-868", "Cp868");
aliasTable.put("ibm-869", "Cp869");
aliasTable.put("cp-gr", "Cp869");
aliasTable.put("csibm869", "Cp869");
aliasTable.put("ibm-870", "Cp870");
aliasTable.put("ibm-871", "Cp871");
aliasTable.put("ibm-874", "Cp874");
aliasTable.put("ibm-875", "Cp875");
aliasTable.put("ibm-897", "Cp897");
aliasTable.put("ibm-918", "Cp918");
aliasTable.put("ibm-921", "Cp921");
aliasTable.put("ibm-922", "Cp922");
aliasTable.put("ibm-924", "Cp924");
aliasTable.put("ibm00924", "Cp924");
aliasTable.put("ibm-927", "Cp927");
aliasTable.put("ibm-930", "Cp930");
aliasTable.put("ibm-932", "Cp942C");
aliasTable.put("ibm-933", "Cp933");
aliasTable.put("ibm-935", "Cp935");
aliasTable.put("ibm-937", "Cp937");
aliasTable.put("ibm-939", "Cp939");
aliasTable.put("ibm-942", "Cp942");
aliasTable.put("ibm-942c", "Cp942C");
aliasTable.put("ibm-943", "Cp943");
aliasTable.put("ibm-943c", "Cp943C");
aliasTable.put("ibm-947", "Cp947");
aliasTable.put("ibm-948", "Cp948");
aliasTable.put("ibm-949", "Cp949");
aliasTable.put("ibm-949c", "Cp949C");
aliasTable.put("ibm-950", "Cp950");
aliasTable.put("ibm-951", "Cp951");
aliasTable.put("ibm-954", "Cp33722");
aliasTable.put("ibm-954c", "Cp33722");
aliasTable.put("ibm-964", "Cp964");
aliasTable.put("ibm-970", "Cp970");
aliasTable.put("ibm-971", "Cp971");
aliasTable.put("ibm-1006", "Cp1006");
aliasTable.put("ibm-1025", "Cp1025");
aliasTable.put("ibm-1026", "Cp1026");
aliasTable.put("ibm-1027", "Cp1027");
aliasTable.put("ibm-1038", "MacSymbol");
aliasTable.put("adobe-symbol-encoding", "MacSymbol");
aliasTable.put("macsymbol", "MacSymbol");
aliasTable.put("ibm-1041", "Cp1041");
aliasTable.put("ibm-1043", "Cp1043");
aliasTable.put("ibm-1046", "Cp1046");
aliasTable.put("ibm-1046s", "Cp1046S");
aliasTable.put("ibm-1047", "Cp1047");
aliasTable.put("ibm-1088", "Cp1088");
aliasTable.put("ibm-1097", "Cp1097");
aliasTable.put("ibm-1098", "Cp1098");
aliasTable.put("ibm-1112", "Cp1112");
aliasTable.put("ibm-1114", "Cp1114");
aliasTable.put("ibm-1115", "Cp1115");
aliasTable.put("ibm-1122", "Cp1122");
aliasTable.put("ibm-1123", "Cp1123");
aliasTable.put("ibm-1124", "Cp1124");
aliasTable.put("ibm01140", "Cp1140");
aliasTable.put("ibm-1140", "Cp1140");
aliasTable.put("ibm01141", "Cp1141");
aliasTable.put("ibm-1141", "Cp1141");
aliasTable.put("ibm01142", "Cp1142");
aliasTable.put("ibm-1142", "Cp1142");
aliasTable.put("ibm01143", "Cp1143");
aliasTable.put("ibm-1143", "Cp1143");
aliasTable.put("ibm01144", "Cp1144");
aliasTable.put("ibm-1144", "Cp1144");
aliasTable.put("ibm01145", "Cp1145");
aliasTable.put("ibm-1145", "Cp1145");
aliasTable.put("ibm01146", "Cp1146");
aliasTable.put("ibm-1146", "Cp1146");
aliasTable.put("ibm01147", "Cp1147");
aliasTable.put("ibm-1147", "Cp1147");
aliasTable.put("ibm01148", "Cp1148");
aliasTable.put("ibm-1148", "Cp1148");
aliasTable.put("ibm01149", "Cp1149");
aliasTable.put("ibm-1149", "Cp1149");
aliasTable.put("ibm-1275", "MacRoman");
aliasTable.put("ibm-1280", "MacGreek");
aliasTable.put("ibm-1281", "MacTurkish");
aliasTable.put("ibm-1282", "MacCentralEurope");
aliasTable.put("ibm-1283", "MacCyrillic");
aliasTable.put("ibm-1351", "Cp1351");
aliasTable.put("ibm-1362", "Cp1362");
aliasTable.put("ibm-1363", "Cp1363");
aliasTable.put("ibm-1363c", "Cp1363C");
aliasTable.put("ibm-1364", "Cp1364");
aliasTable.put("ibm-1370", "Cp1370");
aliasTable.put("ibm-1371", "Cp1371");
aliasTable.put("ibm-1380", "Cp1380");
aliasTable.put("ibm-1381", "Cp1381");
aliasTable.put("ibm-1382", "Cp1382");
aliasTable.put("ibm-1383", "Cp1383");
aliasTable.put("ibm-1385", "Cp1385");
aliasTable.put("ibm-1386", "Cp1386");
aliasTable.put("gbk", "GBK");
aliasTable.put("ibm-1388", "Cp1388");
aliasTable.put("ibm-1390", "Cp1390");
aliasTable.put("ibm-1399", "Cp1399");
aliasTable.put("ibm-33722", "Cp33722");
aliasTable.put("ibm-33722c", "Cp33722C");
aliasTable.put("jis auto detect", "JISAutoDetect");
aliasTable.put("jis", "ISO2022JP");
aliasTable.put("iso-2022-jp", "ISO2022JP");
aliasTable.put("csiso2022jp", "ISO2022JP");
aliasTable.put("jis_encoding", "ISO2022JP");
aliasTable.put("csjisencoding", "ISO2022JP");
aliasTable.put("iso-2022-kr", "ISO2022KR");
aliasTable.put("csiso2022kr", "ISO2022KR");
aliasTable.put("shift_jis", "MS932");
aliasTable.put("ms_kanji", "MS932");
aliasTable.put("csshiftjis", "MS932");
aliasTable.put("windows-31j", "MS932");
aliasTable.put("cswindows31j", "MS932");
aliasTable.put("x-sjis", "MS932");
aliasTable.put("sjis", "SJIS");
aliasTable.put("\u30B7\u30D5\u30C8\u7B26\u53F7\u5316\u8868\u73FE", "SJIS");
aliasTable.put("pck", "SJIS");
aliasTable.put("jis0201", "JIS0201");
aliasTable.put("jis0208", "JIS0208");
aliasTable.put("jis0212", "JIS0212");
aliasTable.put("eucjis", "EUC_JP");
aliasTable.put("euc-jp", "EUC_JP");
aliasTable.put("ibm-eucjp", "EUC_JP");
aliasTable.put("eucjp", "EUC_JP");
aliasTable.put("extended_unix_code_packed_format_for_japanese", "EUC_JP");
aliasTable.put("cseucpkdfmtjapanese", "EUC_JP");
aliasTable.put("x-euc-jp", "EUC_JP");
aliasTable.put("x-eucjp", "EUC_JP");
aliasTable.put("euc-jp-linux", "EUC_JP_LINUX");
aliasTable.put("windows-874", "MS874");
aliasTable.put("ms874", "MS874");
aliasTable.put("windows-1250", "Cp1250");
aliasTable.put("ibm-1250", "Cp1250");
aliasTable.put("windows-1251", "Cp1251");
aliasTable.put("ibm-1251", "Cp1251");
aliasTable.put("windows-1252", "Cp1252");
aliasTable.put("ibm-1252", "Cp1252");
aliasTable.put("windows-1253", "Cp1253");
aliasTable.put("ibm-1253", "Cp1253");
aliasTable.put("windows-1254", "Cp1254");
aliasTable.put("ibm-1254", "Cp1254");
aliasTable.put("windows-1255", "Cp1255");
aliasTable.put("ibm-1255", "Cp1255");
aliasTable.put("windows-1256", "Cp1256");
aliasTable.put("ibm-1256", "Cp1256");
aliasTable.put("windows-1256s", "Cp1256S");
aliasTable.put("ibm-1256s", "Cp1256S");
aliasTable.put("windows-1257", "Cp1257");
aliasTable.put("ibm-1257", "Cp1257");
aliasTable.put("windows-1258", "Cp1258");
aliasTable.put("ibm-1258", "Cp1258");
aliasTable.put("ibm-1129", "Cp1258");
aliasTable.put("macarabic", "MacArabic");
aliasTable.put("maccentraleurope", "MacCentralEurope");
aliasTable.put("maccroatian", "MacCroatian");
aliasTable.put("maccyrillic", "MacCyrillic");
aliasTable.put("macdingbat", "MacDingbat");
aliasTable.put("macgreek", "MacGreek");
aliasTable.put("machebrew", "MacHebrew");
aliasTable.put("maciceland", "MacIceland");
aliasTable.put("macroman", "MacRoman");
aliasTable.put("macromania", "MacRomania");
aliasTable.put("macthai", "MacThai");
aliasTable.put("macturkish", "MacTurkish");
aliasTable.put("macukraine", "MacUkraine");
aliasTable.put("koi8-r", "KOI8_R");
aliasTable.put("koi8", "KOI8_R");
aliasTable.put("cskoi8r", "KOI8_R");
aliasTable.put("gb2312", "EUC_CN");
aliasTable.put("gb2312-80", "EUC_CN");
aliasTable.put("gb2312-1980", "EUC_CN");
aliasTable.put("euc-cn", "EUC_CN");
aliasTable.put("euccn", "EUC_CN");
aliasTable.put("ibm-euccn", "EUC_CN");
aliasTable.put("gb18030", "GB18030");
aliasTable.put("gb18030-2000", "GB18030");
aliasTable.put("ibm1392", "GB18030");
aliasTable.put("ibm-1392", "GB18030");
aliasTable.put("big5", "Big5");
aliasTable.put("big5-hkscs", "Big5_HKSCS");
aliasTable.put("big5_hkscs", "Big5_HKSCS");
aliasTable.put("big5-hkscs-unicode21", "Big5_HKSCS");
aliasTable.put("cns11643", "EUC_TW");
aliasTable.put("euc-tw", "EUC_TW");
aliasTable.put("ibm-euctw", "EUC_TW");
aliasTable.put("euctw", "EUC_TW");
aliasTable.put("ksc5601", "EUC_KR");
aliasTable.put("euc-kr", "EUC_KR");
aliasTable.put("ibm-euckr", "EUC_KR");
aliasTable.put("euckr", "EUC_KR");
aliasTable.put("ks_c_5601-1987", "EUC_KR");
aliasTable.put("ksc5601-1987", "EUC_KR");
aliasTable.put("ksc5601_1987", "EUC_KR");
aliasTable.put("ksc_5601", "EUC_KR");
aliasTable.put("5601", "EUC_KR");
aliasTable.put("ksc5601-1992", "Johab");
aliasTable.put("ksc5601_1992", "Johab");
aliasTable.put("ms1361", "Johab");
aliasTable.put("johab", "Johab");
aliasTable.put("windows-932", "MS932");
aliasTable.put("ms932", "MS932");
aliasTable.put("windows-936", "MS936");
aliasTable.put("ms936", "MS936");
aliasTable.put("936", "MS936");
aliasTable.put("windows-949", "MS949");
aliasTable.put("ms949", "MS949");
aliasTable.put("windows-950", "MS950");
aliasTable.put("ms950", "MS950");
aliasTable.put("tis620.2533", "TIS620");
aliasTable.put("tis-620", "TIS620");
aliasTable.put("tis620", "TIS620");
aliasTable.put("iscii", "ISCII91");
}
}
NOTE: AIX4.3.3 IBM JDK 1.3.1-20030630 의 것이며, OS별로, JDK 버전별로 다를 수
있습니다.
자바서비스넷 이원영
':::: 개발 :::: > ::: JAVA :::' 카테고리의 다른 글
JAVA 인터페이스 개념 정리 (0) | 2011.03.11 |
---|---|
허허 이게 생각이 안났써 변수 비교후 바꾸기 (0) | 2010.10.03 |
JAVA null 체크 length 이용 (0) | 2010.06.17 |
[본문스크랩] [강좌] 자바 설치하기. (0) | 2009.12.28 |
3가지 수 입력중 제일 큰수 찾기 (0) | 2009.12.28 |
아바티스 + 스트러츠 관련 링크 (0) | 2009.12.28 |
이쁘게 정리하기 (0) | 2009.12.28 |
자바 환경 설정 톰캣 환경설정 (0) | 2009.12.28 |