Commit b753de48 authored by Quxl's avatar Quxl

x

parent 62fa836f
......@@ -1202,14 +1202,9 @@ public class StringUtil {
return stack;
}
public static String NewGBKString(byte[] bytes) {
String sSerialNumber = null;
try {
sSerialNumber = new String(bytes, "GBK");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
sSerialNumber = new String(bytes);
}
return sSerialNumber;
public static String bytesToString(byte[] bytes) {
return new String(bytes);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment