public class PunyCode extends Object
参考:https://blog.csdn.net/a19881029/article/details/18262671
public static String encode(String input) throws UtilException
input - 字符串UtilException - 计算异常public static String encode(String input, boolean withPrefix) throws UtilException
input - 字符串withPrefix - 是否包含 "xn--"前缀UtilException - 计算异常public static String decode(String input) throws UtilException
input - PunyCodeUtilException - 计算异常Copyright © 2021. All rights reserved.