Trouble printing unicode values

时间:2018-03-23 00:34:40

标签: java unicode

I am trying to printsubscripts in java but whenever I type in the unicode value for said subscript and print it I get a "?" For example the code down below would print Na? instead of Na₂

System.out.println("Na\u2082");

Is there anything I can do to fix this. I've looked everywhere online and have absolutely no idea why this is happening. Any help would be greatly appreciated.

0 个答案:

没有答案