The program is printing a character that can't be shown by the console window. From the number inside the box you can see that the char has value 1. If you want to print the character 1 you will have to print '1' which has value 49 in ASCII and Unicode.