我喜欢在调试器中看到剪贴板符号:?(U + 1F4CB)。
我了解这两个代码点。
喉音:
\ ud83d是ߓ
\ u8dccb是
我想详细格式化以在Unicode的debug-tooltip中看到它。
我当前的详细信息格式化程序(Preferences-> Java-Debug-> Detail Formatter)是:
new String(this.getBytes("utf8"), java.nio.charset.Charset.forName("utf8")).concat(" <---")
(上面的代码只不过<---
在详细视图中添加了a )
我需要哪种格式化程序才能在黄色的工具提示中看到正确显示的字符?
import java.nio.charset.Charset;public class Test { public static void main(String[] args) { byte[] db = new byte[] { -16, -97, -109, -117 }; String x = new String(db, Charset.forName("utf8")); System.out.println(x); return; }}
蓝山帝景
慕尼黑5688855
相关分类