package test.encoding; import java.io.UnsupportedEncodingException; public class TestEncoding { /** * @param args * @description * @version 1.0 * @author zhangl * @update 2011-4-11 下午09:25:06 */ public static void main(String[] args) { try { String keyword = "/u6309/u4e0b/u8f7d/u6b21/u6570/u964d/u5e8f" ; keyword = new String(keyword.getBytes(), "utf-8") ; System.out.println(keyword) ; } catch (UnsupportedEncodingException e) { e.printStackTrace(); } } }
还原utf-8编码格式
最新推荐文章于 2024-08-15 14:47:41 发布