JAVA源码 – 字符串转换为16进制

JAVA源码 – 字符串转换为16进制
Java package com.xiaoxindd; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; /** * * */ public class Main { public static void main(String[] args) throws UnsupportedEncodingException { String hex = URLEncoder.encode("测试", "UTF8"); String chsHex = URLDecoder.dec...