C
chad
I attempted to output a Chinese character like below, but was not
successful. I got a question mark (?) in place of that character.
// please note that c is a chinese character.
FileOutputStream fos = new FileOutputStream("file1.txt");
OutputStreamWriter osw = new OutputStreamWriter(fos, "GB2312");
System.out.print(c); // no problem, the character diplays well.
osw.write(c); // problem: writes an ? instead of that chinese char.
Any guru please?
successful. I got a question mark (?) in place of that character.
// please note that c is a chinese character.
FileOutputStream fos = new FileOutputStream("file1.txt");
OutputStreamWriter osw = new OutputStreamWriter(fos, "GB2312");
System.out.print(c); // no problem, the character diplays well.
osw.write(c); // problem: writes an ? instead of that chinese char.
Any guru please?