why '?' appears as output while Printing unicode characters in java

后端 未结 5 1918
不思量自难忘°
不思量自难忘° 2020-12-21 08:47

While printing certain unicode characters in java we get output as \'?\'. Why is it so and is there any way to print these characters?

This is my code



        
5条回答
  •  太阳男子
    2020-12-21 09:01

    You have a character encoding which doesn't match the character you have or the supported characters on the screen.

    I would check which encoding you are using through out and try to determine whether you are reading, storing or printing the value correctly.

提交回复
热议问题