My test program is:
public class Test { public static void main(String[] args) { char ch = 65270; StringBuilder sb = new StringBuilder(); sb.append(ch); sb.append(" -> "); sb.append(Integer.valueOf(ch)); System.out.println(sb.toString()); } } Result is : 65270 <- ﻶ
I can not understand why ?
I expire result is : ? -> 65270
Actual result in terminal (use command "javac Test.java" and "java Test") : ? -> 65270
But in Eclipse console : 65270 <- ?
It looks like an Eclipse problem ?
? -> 65270when running this code