package com.consume; import io.netty.buffer.ByteBufUtil; public class Test { public static void main(String[] args) { String code = "485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d547970653a20746578742f706c61696e3b20636861727365743d7574662d380d0a436f6e6e656374696f6e3a20636c6f73650d0a0d0a343030204261642052657175657374"; byte[] bytes = ByteBufUtil.decodeHexDump(code); System.out.println(new String(bytes)); } }
16进制编码,转换成String
最新推荐文章于 2025-06-10 17:06:10 发布