When I run
char c= '\u0000';
System.out.println(c);
in Eclipse,it prints a little square which means a null character.
But it prints ‘a’ when I run it in CLI.
Then I run it on other computers, some print ‘a’, some print a space.
Why would this happen?
My OS is Windows 7 professional-32bit.The other systems are windows xp.
My java version is jdk_1.6.0update12.
It does not print a for me:
Ubuntu 11.10 here:
Things to check / try:
java Mkt > some_file.txt) and see what’s in it, preferably with some hex editor\u0001display?