You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Main {
public static void main(String[] args) {
String a = "你好,世界!";
for (int i = 0; i < a.codePointCount(0, a.length()); i++) {
int codePoint = a.codePointAt(i);
System.out.println(Integer.toHexString(codePoint));
}
// 输出:4f60 597d ff0c 4e16 754c ff01
System.out.println("\u4f60\u597d\uff0c\u4e16\u754c\uff01");
// 输出:你好,世界!
}
}
怎么把输出来的表情转换成类似这样的字符串\ue32d
The text was updated successfully, but these errors were encountered: