-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
1.2.0, 1.3.0, 1.4.1, 1.4.2, 1.4.2_08
-
generic, x86, sparc
-
generic, linux, solaris_2.6, solaris_9, windows_nt, windows_2000
it doesn't affect ByteToChar converter.
In case of JDK1.2beta4, -Dfile.encoding option affects
both ByteToChar converter and CharToByte converter.
Run the following program.
--- program ---
import sun.io.CharToByteConverter;
import sun.io.ByteToCharConverter;
public class DefaultEncoding {
public static void main (String args[]) {
System.out.println(ByteToCharConverter.getDefault().toString());
System.out.println(CharToByteConverter.getDefault().toString());
}
}
--- result ---
Win32, JDK1.2fcs_D:
C:\>java DefaultEncoding
ByteToCharConverter: SJIS
CharToByteConverter: SJIS
C:\>java -Dfile.encoding=EUC_JP DefaultEncoding
ByteToCharConverter: SJIS
CharToByteConverter: EUC_JP
Win32, JDK1.2beta4_K:
C:\>java DefaultEncoding
ByteToCharConverter: SJIS
CharToByteConverter: SJIS
C:\>java -Dfile.encoding=EUC_JP DefaultEncoding
ByteToCharConverter: EUC_JP
CharToByteConverter: EUC_JP
- duplicates
-
JDK-4375816 java ignores -Dfile.encoding parameter
- Closed
-
JDK-4868507 character encoding is allways system - ignoring file.encoding set to ISO-8859-1
- Closed
-
JDK-4263816 -Dfile.encoding does not work
- Closed
-
JDK-5052844 file.encoding parameter ignored on Intel Linux
- Closed
-
JDK-6277100 Java default file encoding not taking precedence as default charset encoding when -Duser.* set
- Closed
-
JDK-4413998 RFE: java should allow users to modify JVM's default character set
- Closed
-
JDK-4808414 file.encoding should be made changeable
- Closed
-
JDK-5036333 There must be in the JNLP file a way to specify the file.encoding property
- Closed
- relates to
-
JDK-4165411 java.lang.System: Forbid the modification of read-only system properties
- Open
-
JDK-6203271 File.exists() does not recognize directories/files in ISO-8859
- Closed
-
JDK-4397522 Read only status of file.encoding varies by platform
- Closed