怎么把输出来的表情转换成类似这样的字符串\ue32d
nicech6 opened this issue · 2 comments
nicech6 commented
怎么把输出来的表情转换成类似这样的字符串\ue32d
TakWolf commented
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");
// 输出:你好,世界!
}
}
Deleted user commented
X bsvahzxxb scX bdvd kaB-) vcb
…On May 3, 2017 6:04 AM, "崔海" ***@***.***> wrote:
怎么把输出来的表情转换成类似这样的字符串\ue32d
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#161>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARRKyn9o_orv1UlP35uBsec_dBBtleN1ks5r19m4gaJpZM4NO4G1>
.