S
System.setProperty("key", "val");
Size: a a a
S
System.setProperty("key", "val");
МА
ТИ
S
k
private static native Properties initProperties(Properties props);
GETPROP(props, "file.encoding", jVMVal);
if (jVMVal == NULL) {
#ifdef MACOSX
/*
* Since sun_jnu_encoding is now hard-coded to UTF-8 on Mac, we don't
* want to use it to overwrite file.encoding
*/
PUTPROP(props, "file.encoding", sprops->encoding);
#else
PUTPROP(props, "file.encoding", sprops->sun_jnu_encoding);
#endif
if (GetLocaleInfo(lcid,
LOCALE_IDEFAULTANSICODEPAGE,
ret+2, 14) == 0) {
codepage = 1252;
} else {
codepage = atoi(ret+2);
}
switch (codepage) {
case 0:
strcpy(ret, "UTF-8");
break;
case 874: /* 9:Thai */
case 932: /* 10:Japanese */
case 949: /* 12:Korean Extended Wansung */
case 950: /* 13:Chinese (Taiwan, Hongkong, Macau) */
case 1361: /* 15:Korean Johab */
ret[0] = 'M';
ret[1] = 'S';
break;
case 936:
strcpy(ret, "GBK");
break;
case 54936:
strcpy(ret, "GB18030");
break;
default:
ret[0] = 'C';
ret[1] = 'p';
break;
}
AK
System.setProperty("key", "val");
the file.encoding property has to be specified as the JVM starts up
AK
TN
DK
TN
С
AZ
A
AK
TV
ES
TN
PD
V
AZ