Name: mc57594 Date: 01/30/97
I can't use tilde '~' in Java application at JDK 1.1Beta3 on Japanese
Windows95's MS-DOS prompt. Because tilde '~' automatically changes to
question mark '?'.
But I can use tilde '~' at JDK 1.0.2 on Japanese Windows95's MS-DOS prompt.
An example at JDK 1.1Beta3 on Japanese Windows95's MS-DOS prompt window.
===============================================================================
E:\PRG>type test.java
import java.io.*;
public class test {
public static void main(String[] args) {
System.out.println("a~b.txt");
System.out.println("a\u007eb.txt");
try {
FileOutputStream out = new FileOutputStream(new File("a~b.txt"));
out.write(0x55);
out.close();
} catch (IOException ioe) {
System.out.println("IOException: " + ioe);
}
}
}
E:\PRG>javac test.java
E:\PRG>java -version
java version "JDK1.1beta3.3"
E:\PRG>java test
a?b.txt
a?b.txt
IOException: java.io.FileNotFoundException: a?b.txt
E:\PRG>dir /b
test.java
test.class
E:\PRG>
===============================================================================
According to this example I can't display tilde '~' on console and
can't make a file named "a~b.txt".
A same example at JDK 1.0.2 on Japanese Windows95's MS-DOS prompt window.
===============================================================================
E:\PRG>type test.java
import java.io.*;
public class test {
public static void main(String[] args) {
System.out.println("a~b.txt");
System.out.println("a\u007eb.txt");
try {
FileOutputStream out = new FileOutputStream(new File("a~b.txt"));
out.write(0x55);
out.close();
} catch (IOException ioe) {
System.out.println("IOException: " + ioe);
}
}
}
E:\PRG>javac test.java
E:\PRG>java -version
java version "1.0.2"
E:\PRG>java test
a~b.txt
a~b.txt
E:\PRG>dir /b
test.java
test.class
a~b.txt
E:\PRG>
===============================================================================
According to this example I can display tilde '~' on console and
can make a file named "a~b.txt".
company - Chuo Shokuhin Co. , email - ###@###.###
======================================================================
- duplicates
-
JDK-4028102 SJIS converter converts tilde(0x7e) and DEL (0x7f) to '?'
- Closed