On 17/05/11 10:16, Ian Dickinson wrote:
2. The second problem is related to the following code:
> StringBuffer str = new StringBuffer();
> System.err
> .println("\nUnicode Character is not displayed properly
> when it follows immediately after more than 1 english characters");
> str.append("an");
> str.append("\u2293");
> System.err.println(str);
> System.out.print("an");
> System.out.println("\u2293");
> System.out.println("\u2293");
>
> when "\u2293" follows more than 1 English characters, it goes to a
> square, but it is expected to be "⊓"~
This works fine on my Linux system. I suspect it's something to do with
MS Windows
It looks like there is a mismatch between platform default encoding
(PrintStream uses that for .println(String)) and how you are viewing the
output.
Andy