diff --git a/海亮定制.md b/海亮定制.md index cfed2a7..6ddf620 100644 --- a/海亮定制.md +++ b/海亮定制.md @@ -473,11 +473,11 @@ ${clinetId} clinetId 是基站编号,为替换字符串。 | qm = 1 |单题模式 示例为单题模式的字母单选 | | qt |字母单选 | | on |选项数 | -| content |题目主干内容,hex: 为内容的GBK编码的hex内容 | +| content |题目主干内容,hex: 为内容的GB2312编码的hex内容 | ```java -System.out.println(new String(hex2Bytes(bytesToHexString("李四".getBytes("GBK"))),"GBK")); +System.out.println(new String(hex2Bytes(bytesToHexString("李四".getBytes("GB2312"))),"GB2312")); public static String bytesToHexString(byte[] src) { StringBuilder stringBuilder = new StringBuilder(""); @@ -828,12 +828,12 @@ public static String bytesToHexString(byte[] src) { | current |当前第几包 | | total |一共多少包 | | cmd |下发的命令
1: 姓名下发
4: 第二行文本
85: 自判题判断
87: 清除 | -| text |标题信息,以hex:开头添加的内容 内容为GBK的hex编码 | +| text |标题信息,以hex:开头添加的内容 内容为GB2312的hex编码 | ```java - System.out.println(bytesToHexString("李四".getBytes("GBK"))); + System.out.println(bytesToHexString("李四".getBytes("GB2312"))); public static String bytesToHexString(byte[] src) { StringBuilder stringBuilder = new StringBuilder("");