我在 JDK5 中使用以下 API import sun.text.Normalizer:
- public static String decompose(String str, boolean compat, int) 选项)
- 公共(public)静态最终 int getClass(int ch)
- 公共(public)静态字符串规范化(字符串str,Mode模式,int选项)
如何将代码升级到JDK6才能实现相同的功能? 我用谷歌搜索,但没有结果。非常感谢您的提示。
最佳答案
您可以使用java.text.Normalizer 。它有方法标准化
。
关于java - JDK6 中不存在 sun.text.Normalizer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15047678/