在 java 中打印某些 unicode 字符时,我们得到的输出为“?”。为什么会这样,有没有办法打印这些字符?
这是我的代码
String symbol1="\u200d";
StringBuilder strg = new StringBuilder("unicodecharacter");
strg.insert(5,symbol1);
System.out.println("After insertion...");
System.out.println(strg.toString());
输出是 插入后... unico?去字符
最佳答案
Here's a great article ,由 Joel Spolsky 就此主题撰写。它不会直接帮助您解决问题,但会帮助您了解发生了什么。它还会向您展示实际情况的复杂程度。
关于java - 为什么 '?' 在 java 中打印 unicode 字符时显示为输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19038353/