android - 如何在android中获取字符的Unicode

标签 android unicode

我想获取字符的 Unicode,然后我想匹配一个 Unicode ِ0650。基本上我想从字符串中找到一个特定的 Unicode,如果找到它,我将从字符串中删除该字符。

最佳答案

试试这一行,它会返回你的字符

的unicode
 String.valueOf(Character.toChars(Integer.parseInt(character, 16)))

关于android - 如何在android中获取字符的Unicode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20762354/

相关文章:

Android:如何找出 "Unfortunately [...] has stopped"的原因?

android - Glide,当缓存大小大于 50 MB 时清除缓存

Android Studio 提示重复类

java - 实现一个算法来确定字符串是否包含所有唯一字符(大于 U+FFFF 的字符)

ruby - 将 unicode 代码点转换为 Ruby 中的字符串字符

python - unicode.isdigit() 和 unicode.isnumeric() 的区别

android - ScrollView 不显示

android - 尝试更改启动器 Activity 但显示未找到默认 Activity

c++ - 在不处理它的应用程序中使用 unicode/UTF8 处理/清理用户输入

unicode - `` 这个符号是什么,为什么有些人看不到呢?