panlili2024
2024-11-08 81d297dd33911dbfdc93dbc3fa9747e511b7ce8e
HDL_TTLSDK485/src/main/java/com/hdl/sdk/ttl/Utils/HDLUtlis/HDLStringUtils.java
@@ -22,7 +22,7 @@
        String result = "";
        try {
            result = new String(remarkBytes, "GB2312");
            result = new String(remarkBytes, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
@@ -32,7 +32,7 @@
    public static byte[] stringtoBytes(String str) {
        byte[] bytes = new byte[20];
        try {
            bytes = str.getBytes("GB2312");
            bytes = str.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }