Commit b753de48 authored by Quxl's avatar Quxl

x

parent 62fa836f
...@@ -1202,14 +1202,9 @@ public class StringUtil { ...@@ -1202,14 +1202,9 @@ public class StringUtil {
return stack; return stack;
} }
public static String NewGBKString(byte[] bytes) { public static String bytesToString(byte[] bytes) {
String sSerialNumber = null; return new String(bytes);
try {
sSerialNumber = new String(bytes, "GBK");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
sSerialNumber = new String(bytes);
}
return sSerialNumber;
} }
} }
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